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

Use openStateConfig for storing window size

parent 3e60e495
Pipeline #56740 failed with stage
in 6 minutes and 7 seconds
......@@ -44,7 +44,7 @@ GroupManagementDialog::~GroupManagementDialog()
void GroupManagementDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myGroupManagementDialogGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myGroupManagementDialogGroupName);
const QSize sizeDialog = group.readEntry("Size", QSize(400, 300));
if (sizeDialog.isValid()) {
resize(sizeDialog);
......@@ -53,6 +53,6 @@ void GroupManagementDialog::readConfig()
void GroupManagementDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myGroupManagementDialogGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myGroupManagementDialogGroupName);
group.writeEntry("Size", size());
}
......@@ -103,7 +103,7 @@ KDebugSettingsDialog::~KDebugSettingsDialog()
void KDebugSettingsDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), QLatin1String(KDebugSettingsDialogGroupName));
KConfigGroup group(KSharedConfig::openStateConfig(), QLatin1String(KDebugSettingsDialogGroupName));
const QSize size = group.readEntry("Size", QSize(600, 400));
if (size.isValid()) {
resize(size);
......@@ -112,7 +112,7 @@ void KDebugSettingsDialog::readConfig()
void KDebugSettingsDialog::saveConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), QLatin1String(KDebugSettingsDialogGroupName));
KConfigGroup group(KSharedConfig::openStateConfig(), QLatin1String(KDebugSettingsDialogGroupName));
group.writeEntry("Size", size());
group.sync();
}
......
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