Commit 43654df3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use openStateConfig for storing window size

parent f084d280
Pipeline #57097 passed with stage
in 11 minutes and 59 seconds
......@@ -102,7 +102,7 @@ void NotesAgentAlarmDialog::slotCustomContextMenuRequested(const QPoint &pos)
void NotesAgentAlarmDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "NotesAgentAlarmDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "NotesAgentAlarmDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -111,7 +111,7 @@ void NotesAgentAlarmDialog::readConfig()
void NotesAgentAlarmDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "NotesAgentAlarmDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "NotesAgentAlarmDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......
......@@ -95,7 +95,7 @@ void NotesAgentNoteDialog::slotFetchItem(KJob *job)
void NotesAgentNoteDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "NotesAgentNoteDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "NotesAgentNoteDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -104,7 +104,7 @@ void NotesAgentNoteDialog::readConfig()
void NotesAgentNoteDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "NotesAgentNoteDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "NotesAgentNoteDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......@@ -58,7 +58,7 @@ Akonadi::Item::List KNoteDeleteSelectedNotesDialog::selectedNotes() const
void KNoteDeleteSelectedNotesDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteDeleteSelectedNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteDeleteSelectedNotesDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -67,7 +67,7 @@ void KNoteDeleteSelectedNotesDialog::readConfig()
void KNoteDeleteSelectedNotesDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteDeleteSelectedNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteDeleteSelectedNotesDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......@@ -77,7 +77,7 @@ QStringList KNoteSelectedNotesDialog::selectedNotes() const
void KNoteSelectedNotesDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteSelectedNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteSelectedNotesDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -86,7 +86,7 @@ void KNoteSelectedNotesDialog::readConfig()
void KNoteSelectedNotesDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteSelectedNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteSelectedNotesDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......@@ -40,7 +40,7 @@ KNotesKeyDialog::~KNotesKeyDialog()
void KNotesKeyDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNotesKeyDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNotesKeyDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -49,7 +49,7 @@ void KNotesKeyDialog::readConfig()
void KNotesKeyDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNotesKeyDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNotesKeyDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......
......@@ -49,14 +49,14 @@ void KNoteFindDialog::setExistingNotes(const QHash<Akonadi::Item::Id, Akonadi::I
void KNoteFindDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteFindDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteFindDialog");
grp.writeEntry("Size", size());
grp.sync();
}
void KNoteFindDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteFindDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteFindDialog");
const QSize size = grp.readEntry("Size", QSize(600, 300));
if (size.isValid()) {
resize(size);
......
......@@ -119,7 +119,7 @@ void KNoteEditDialog::setReadOnly(bool b)
void KNoteEditDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteEditDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteEditDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -128,7 +128,7 @@ void KNoteEditDialog::readConfig()
void KNoteEditDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNoteEditDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNoteEditDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......
......@@ -73,7 +73,7 @@ KNotesSelectDeleteNotesDialog::~KNotesSelectDeleteNotesDialog()
void KNotesSelectDeleteNotesDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNotesSelectDeleteNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNotesSelectDeleteNotesDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -82,7 +82,7 @@ void KNotesSelectDeleteNotesDialog::readConfig()
void KNotesSelectDeleteNotesDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNotesSelectDeleteNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNotesSelectDeleteNotesDialog");
grp.writeEntry("Size", size());
grp.sync();
}
......@@ -115,7 +115,7 @@ bool KNotePrintSelectedNotesDialog::preview() const
void KNotePrintSelectedNotesDialog::readConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNotePrintSelectedNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNotePrintSelectedNotesDialog");
const QSize size = grp.readEntry("Size", QSize(300, 200));
if (size.isValid()) {
resize(size);
......@@ -124,7 +124,7 @@ void KNotePrintSelectedNotesDialog::readConfig()
void KNotePrintSelectedNotesDialog::writeConfig()
{
KConfigGroup grp(KSharedConfig::openConfig(), "KNotePrintSelectedNotesDialog");
KConfigGroup grp(KSharedConfig::openStateConfig(), "KNotePrintSelectedNotesDialog");
grp.writeEntry("Size", size());
grp.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