┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2009-02-26 20:08:22 +0000
committerDavid Faure <[email protected]>2009-02-26 20:08:22 +0000
commitfd6be5b9af0223a7aeb21ffe074179bceea537d5 (patch)
tree2cfd48ea026ddb210507935c5f3a0d716a31d0ce /src/settings
parent541136328431b2cd60c11e3b222fe5e584b00f5a (diff)
Calling the "Show" group "hiddenGroup" is a bit surprising to the casual reader ;)
svn path=/trunk/KDE/kdebase/apps/; revision=932508
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/servicessettingspage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings/servicessettingspage.cpp b/src/settings/servicessettingspage.cpp
index a6d090529..57e91e5dd 100644
--- a/src/settings/servicessettingspage.cpp
+++ b/src/settings/servicessettingspage.cpp
@@ -61,14 +61,14 @@ ServicesSettingsPage::~ServicesSettingsPage()
void ServicesSettingsPage::applySettings()
{
KConfig config("kservicemenurc", KConfig::NoGlobals);
- KConfigGroup hiddenGroup = config.group("Show");
+ KConfigGroup showGroup = config.group("Show");
const int count = m_servicesList->count();
for (int i = 0; i < count; ++i) {
QListWidgetItem* item = m_servicesList->item(i);
const bool show = (item->checkState() == Qt::Checked);
const QString service = item->data(Qt::UserRole).toString();
- hiddenGroup.writeEntry(service, show);
+ showGroup.writeEntry(service, show);
}
}
@@ -93,7 +93,7 @@ bool ServicesSettingsPage::event(QEvent* event)
void ServicesSettingsPage::loadServices()
{
const KConfig config("kservicemenurc", KConfig::NoGlobals);
- const KConfigGroup hiddenGroup = config.group("Show");
+ const KConfigGroup showGroup = config.group("Show");
const KService::List entries = KServiceTypeTrader::self()->query("KonqPopupMenu/Plugin");
foreach (const KSharedPtr<KService>& service, entries) {
@@ -108,7 +108,7 @@ void ServicesSettingsPage::loadServices()
m_servicesList);
const QString service = action.name();
item->setData(Qt::UserRole, service);
- const bool show = hiddenGroup.readEntry(service, true);
+ const bool show = showGroup.readEntry(service, true);
item->setCheckState(show ? Qt::Checked : Qt::Unchecked);
}
}