Commit 07191dbb authored by Glen Ditchfield's avatar Glen Ditchfield 🐛 Committed by Glen Ditchfield
Browse files

Separate the Search dialog and Event List configurations

parent e718252e
Pipeline #77498 failed with stage
in 2 minutes and 59 seconds
......@@ -259,14 +259,14 @@ void SearchDialog::readConfig()
if (size.isValid()) {
resize(size);
}
m_listView->readSettings(KSharedConfig::openConfig().data());
m_listView->readSettings(group);
}
void SearchDialog::writeConfig()
{
KConfigGroup group = KSharedConfig::openConfig()->group(QStringLiteral("SearchDialog"));
group.writeEntry("Size", size());
m_listView->writeSettings(KSharedConfig::openConfig().data());
m_listView->writeSettings(group);
group.sync();
}
......
......@@ -14,6 +14,8 @@
#include <EventViews/ListView>
#include <KConfigGroup>
#include <QVBoxLayout>
using namespace KOrg;
......@@ -146,12 +148,13 @@ void KOListView::popupMenu(const QPoint &point)
void KOListView::readSettings(KConfig *config)
{
mListView->readSettings(config);
mListView->readSettings(config->group("ListView Layout"));
}
void KOListView::writeSettings(KConfig *config)
{
mListView->writeSettings(config);
auto cfgGroup = config->group("ListView Layout");
mListView->writeSettings(cfgGroup);
}
void KOListView::clearSelection()
......
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