Commit f32877d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use KSharedConfig::openStateConfig here too

parent f5cb1a94
Pipeline #74307 passed with stage
in 4 minutes and 16 seconds
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
#include <QPushButton> #include <QPushButton>
using namespace Kontact; using namespace Kontact;
namespace
{
static const char myKontactConfigureDialogConfigGroupName[] = "KontactConfigureDialog";
}
KontactConfigureDialog::KontactConfigureDialog(QWidget *parent) KontactConfigureDialog::KontactConfigureDialog(QWidget *parent)
: KontactSettingsDialog(parent) : KontactSettingsDialog(parent)
{ {
...@@ -25,7 +28,7 @@ KontactConfigureDialog::KontactConfigureDialog(QWidget *parent) ...@@ -25,7 +28,7 @@ KontactConfigureDialog::KontactConfigureDialog(QWidget *parent)
KontactConfigureDialog::~KontactConfigureDialog() KontactConfigureDialog::~KontactConfigureDialog()
{ {
KConfigGroup group(KSharedConfig::openConfig(), "KontactConfigureDialog"); KConfigGroup group(KSharedConfig::openStateConfig(), myKontactConfigureDialogConfigGroupName);
group.writeEntry("width", width()); group.writeEntry("width", width());
group.writeEntry("height", height()); group.writeEntry("height", height());
} }
...@@ -70,7 +73,7 @@ void KontactConfigureDialog::slotOk() ...@@ -70,7 +73,7 @@ void KontactConfigureDialog::slotOk()
QSize KontactConfigureDialog::sizeHint() const QSize KontactConfigureDialog::sizeHint() const
{ {
KConfigGroup group(KSharedConfig::openConfig(), "KontactConfigureDialog"); KConfigGroup group(KSharedConfig::openStateConfig(), myKontactConfigureDialogConfigGroupName);
const int width = group.readEntry("width", 800); const int width = group.readEntry("width", 800);
const int height = group.readEntry("height", 600); const int height = group.readEntry("height", 600);
return QSize(width, height); return QSize(width, height);
......
Markdown is supported
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