Commit b34eaf32 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use namespace for group name

parent 47eae40c
Pipeline #240956 passed with stage
in 3 minutes and 39 seconds
......@@ -27,7 +27,10 @@
#include <QVBoxLayout>
using namespace Akonadi;
namespace
{
static const char myContactEditorDialogDialogGroupName[] = "ContactEditor";
}
class Akonadi::ContactEditorDialogPrivate
{
public:
......@@ -109,7 +112,7 @@ public:
void readConfig()
{
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("ContactEditor"));
KConfigGroup group(&config, myContactEditorDialogDialogGroupName);
const QSize size = group.readEntry("Size", QSize(800, 500));
if (size.isValid()) {
q->resize(size);
......@@ -119,7 +122,7 @@ public:
void writeConfig()
{
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("ContactEditor"));
KConfigGroup group(&config, myContactEditorDialogDialogGroupName);
group.writeEntry("Size", q->size());
group.sync();
}
......
......@@ -28,6 +28,10 @@
using namespace Akonadi;
namespace
{
static const char myContactGroupEditorDialogGroupName[] = "ContactGroupEditorDialog";
}
class Akonadi::ContactGroupEditorDialogPrivate
{
public:
......@@ -47,7 +51,7 @@ public:
void readConfig()
{
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("ContactGroupEditorDialog"));
KConfigGroup group(&config, myContactGroupEditorDialogGroupName);
const QSize size = group.readEntry("Size", QSize(470, 400));
if (size.isValid()) {
q->resize(size);
......@@ -57,7 +61,7 @@ public:
void writeConfig()
{
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("ContactGroupEditorDialog"));
KConfigGroup group(&config, myContactGroupEditorDialogGroupName);
group.writeEntry("Size", q->size());
group.sync();
}
......
......@@ -21,6 +21,10 @@ using namespace Akonadi;
#include <QPushButton>
#include <QVBoxLayout>
namespace
{
static const char myContactViewerDialogGroupName[] = "ContactViewer";
}
class Akonadi::ContactViewerDialogPrivate
{
public:
......@@ -32,7 +36,7 @@ public:
void readConfig()
{
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("ContactViewer"));
KConfigGroup group(&config, myContactViewerDialogGroupName);
const QSize size = group.readEntry("Size", QSize(500, 600));
if (size.isValid()) {
q->resize(size);
......@@ -42,7 +46,7 @@ public:
void writeConfig()
{
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("ContactViewer"));
KConfigGroup group(&config, myContactViewerDialogGroupName);
group.writeEntry("Size", q->size());
group.sync();
}
......
......@@ -12,6 +12,10 @@
#include <KSharedConfig>
using namespace Akonadi;
namespace
{
static const char mySelectAddressBookDialogGroupName[] = "SelectAddressBookDialog";
}
class Akonadi::SelectAddressBookDialogPrivate
{
public:
......@@ -39,7 +43,7 @@ public:
void SelectAddressBookDialogPrivate::readConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "SelectAddressBookDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), mySelectAddressBookDialogGroupName);
const QSize size = group.readEntry("Size", QSize(600, 400));
if (size.isValid()) {
q->resize(size);
......@@ -48,7 +52,7 @@ void SelectAddressBookDialogPrivate::readConfig()
void SelectAddressBookDialogPrivate::writeConfig()
{
KConfigGroup group(KSharedConfig::openStateConfig(), "SelectAddressBookDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), mySelectAddressBookDialogGroupName);
group.writeEntry("Size", q->size());
group.sync();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment