Commit 774fc736 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use KSharedConfig::openStateConfig for storing windows size

parent d39553be
Pipeline #56708 passed with stage
in 33 minutes and 29 seconds
......@@ -57,7 +57,7 @@ FilterActionMissingAccountDialog::~FilterActionMissingAccountDialog()
void FilterActionMissingAccountDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingAccountDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingAccountDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -67,7 +67,7 @@ void FilterActionMissingAccountDialog::readConfig()
void FilterActionMissingAccountDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingAccountDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingAccountDialog");
group.writeEntry("Size", size());
}
......
......@@ -93,7 +93,7 @@ FilterActionMissingFolderDialog::~FilterActionMissingFolderDialog()
void FilterActionMissingFolderDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingCollectionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingCollectionDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -103,7 +103,7 @@ void FilterActionMissingFolderDialog::readConfig()
void FilterActionMissingFolderDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingCollectionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingCollectionDialog");
group.writeEntry("Size", size());
}
......
......@@ -59,7 +59,7 @@ FilterActionMissingIdentityDialog::~FilterActionMissingIdentityDialog()
void FilterActionMissingIdentityDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingMissingIdentity");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingMissingIdentity");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -69,7 +69,7 @@ void FilterActionMissingIdentityDialog::readConfig()
void FilterActionMissingIdentityDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingMissingIdentity");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingMissingIdentity");
group.writeEntry("Size", size());
}
......
......@@ -65,7 +65,7 @@ QString FilterActionMissingSoundUrlDialog::soundUrl() const
void FilterActionMissingSoundUrlDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingSoundUrlDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingSoundUrlDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -75,6 +75,6 @@ void FilterActionMissingSoundUrlDialog::readConfig()
void FilterActionMissingSoundUrlDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingSoundUrlDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingSoundUrlDialog");
group.writeEntry("Size", size());
}
......@@ -80,7 +80,7 @@ FilterActionMissingTagDialog::~FilterActionMissingTagDialog()
void FilterActionMissingTagDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingTagDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingTagDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -90,7 +90,7 @@ void FilterActionMissingTagDialog::readConfig()
void FilterActionMissingTagDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingTagDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingTagDialog");
group.writeEntry("Size", size());
}
......
......@@ -57,7 +57,7 @@ FilterActionMissingTemplateDialog::~FilterActionMissingTemplateDialog()
void FilterActionMissingTemplateDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingTemplateDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingTemplateDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -67,7 +67,7 @@ void FilterActionMissingTemplateDialog::readConfig()
void FilterActionMissingTemplateDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingTemplateDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingTemplateDialog");
group.writeEntry("Size", size());
}
......
......@@ -54,7 +54,7 @@ FilterActionMissingTransportDialog::~FilterActionMissingTransportDialog()
void FilterActionMissingTransportDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingTransportDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingTransportDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -64,7 +64,7 @@ void FilterActionMissingTransportDialog::readConfig()
void FilterActionMissingTransportDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterActionMissingTransportDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterActionMissingTransportDialog");
group.writeEntry("Size", size());
}
......
......@@ -55,7 +55,7 @@ void SelectThunderbirdFilterFilesDialog::setStartDir(const QUrl &url)
void SelectThunderbirdFilterFilesDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "SelectThunderbirdFilterFilesDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SelectThunderbirdFilterFilesDialog");
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -65,6 +65,6 @@ void SelectThunderbirdFilterFilesDialog::readConfig()
void SelectThunderbirdFilterFilesDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "SelectThunderbirdFilterFilesDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SelectThunderbirdFilterFilesDialog");
group.writeEntry("Size", size());
}
......@@ -79,7 +79,7 @@ static const char myConfigGroupName[] = "FilterConvertToSieveResultDialog";
void FilterConvertToSieveResultDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myConfigGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myConfigGroupName);
const QSize size = group.readEntry("Size", QSize(500, 300));
if (size.isValid()) {
......@@ -89,7 +89,7 @@ void FilterConvertToSieveResultDialog::readConfig()
void FilterConvertToSieveResultDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myConfigGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myConfigGroupName);
group.writeEntry("Size", size());
group.sync();
}
......@@ -70,13 +70,13 @@ void FilterSelectionDialog::reject()
void FilterSelectionDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterSelectionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterSelectionDialog");
group.writeEntry("Size", size());
}
void FilterSelectionDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "FilterSelectionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "FilterSelectionDialog");
const QSize sizeDialog = group.readEntry("Size", QSize(300, 350));
if (sizeDialog.isValid()) {
resize(sizeDialog);
......
......@@ -62,13 +62,13 @@ void InvalidFilterDialog::setInvalidFilters(const QVector<InvalidFilterInfo> &ls
void InvalidFilterDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "InvalidFilterDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "InvalidFilterDialog");
group.writeEntry("Size", size());
}
void InvalidFilterDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "InvalidFilterDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "InvalidFilterDialog");
const QSize sizeDialog = group.readEntry("Size", QSize(400, 500));
if (sizeDialog.isValid()) {
resize(sizeDialog);
......
......@@ -50,7 +50,7 @@ SnippetCustomFileAttachmentNameDialog::~SnippetCustomFileAttachmentNameDialog()
void SnippetCustomFileAttachmentNameDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), mySnippetCustomFileAttachmentNameDialogGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), mySnippetCustomFileAttachmentNameDialogGroupName);
const QSize size = group.readEntry("Size", QSize(500, 150));
if (size.isValid()) {
......@@ -60,7 +60,7 @@ void SnippetCustomFileAttachmentNameDialog::readConfig()
void SnippetCustomFileAttachmentNameDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), mySnippetCustomFileAttachmentNameDialogGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), mySnippetCustomFileAttachmentNameDialogGroupName);
group.writeEntry("Size", size());
}
......
......@@ -64,13 +64,13 @@ SnippetDialog::~SnippetDialog()
void SnippetDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myConfigGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myConfigGroupName);
group.writeEntry("Size", size());
}
void SnippetDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myConfigGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myConfigGroupName);
const QSize sizeDialog = group.readEntry("Size", QSize(300, 350));
if (sizeDialog.isValid()) {
resize(sizeDialog);
......
......@@ -58,13 +58,13 @@ QStringList SnippetSelectAttachmentDialog::attachments() const
void SnippetSelectAttachmentDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), mySnippetSelectAttachmentDialogGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), mySnippetSelectAttachmentDialogGroupName);
group.writeEntry("Size", size());
}
void SnippetSelectAttachmentDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), mySnippetSelectAttachmentDialogGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), mySnippetSelectAttachmentDialogGroupName);
const QSize sizeDialog = group.readEntry("Size", QSize(300, 350));
if (sizeDialog.isValid()) {
resize(sizeDialog);
......
......@@ -96,13 +96,13 @@ void SnippetVariableDialog::slotAccepted()
void SnippetVariableDialog::writeConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myConfigGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myConfigGroupName);
group.writeEntry("Size", size());
}
void SnippetVariableDialog::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), myConfigGroupName);
KConfigGroup group(KSharedConfig::openStateConfig(), myConfigGroupName);
const QSize sizeDialog = group.readEntry("Size", QSize(300, 350));
if (sizeDialog.isValid()) {
resize(sizeDialog);
......
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