summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/settings.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 110aaa08..9c95bb9c 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -69,6 +69,7 @@ private:
KCModuleProxy *proxyModule;
KCModuleProxy *ebrowsingModule;
KCModuleProxy *cookiesModule;
+ KCModuleProxy *cacheModule;
KShortcutsEditor *shortcutsEditor;
Private(SettingsDialog *parent);
@@ -109,7 +110,12 @@ Private::Private(SettingsDialog *parent)
proxyModule = new KCModuleProxy(proxyInfo,parent);
pageItem = parent->addPage(proxyModule, i18n(proxyInfo.moduleName().toLocal8Bit()));
pageItem->setIcon(KIcon(proxyInfo.icon()));
-
+
+ KCModuleInfo cacheInfo("cache.desktop");
+ cacheModule = new KCModuleProxy(cacheInfo,parent);
+ pageItem = parent->addPage(cacheModule, i18n(cacheInfo.moduleName().toLocal8Bit()));
+ pageItem->setIcon(KIcon(cacheInfo.icon()));
+
widget = new QWidget;
webkitUi.setupUi(widget);
widget->layout()->setMargin(0);
@@ -152,6 +158,8 @@ SettingsDialog::SettingsDialog(QWidget *parent)
connect(d->ebrowsingModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->cookiesModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->proxyModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
+ connect(d->cacheModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
+
connect(d->shortcutsEditor, SIGNAL(keyChange()), this, SLOT(updateButtons()));
connect(this, SIGNAL(applyClicked()), this, SLOT(saveSettings()));
@@ -199,6 +207,7 @@ void SettingsDialog::saveSettings()
d->ebrowsingModule->save();
d->cookiesModule->save();
d->proxyModule->save();
+ d->cacheModule->save();
d->shortcutsEditor->save();
}
@@ -209,6 +218,7 @@ bool SettingsDialog::hasChanged()
|| d->ebrowsingModule->changed()
|| d->cookiesModule->changed()
|| d->proxyModule->changed()
+ || d->cacheModule->changed()
|| d->shortcutsEditor->isModified();
;
}