summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-11 02:27:40 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-13 02:50:36 +0100
commit150be558c9512674d9172782549a2d211b7c8b42 (patch)
tree3376ad0137844f606bb6ff67765f72b2b3dc375c
parentcomments -- (diff)
downloadrekonq-150be558c9512674d9172782549a2d211b7c8b42.tar.xz
KIO cache settings
-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();
;
}