From d0cef4573a07065ed9389ce231ffcdc77359124f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 13 Oct 2009 11:29:10 +0200 Subject: Proxy configuration dialog --- src/settings.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/settings.cpp b/src/settings.cpp index 9b12ef3a..4a6c50b8 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -63,6 +63,7 @@ private: Ui::general generalUi; Ui::fonts fontsUi; Ui::webkit webkitUi; + KCModuleProxy *proxyModule; KCModuleProxy *ebrowsingModule; KCModuleProxy *cookiesModule; KShortcutsEditor *shortcutsEditor; @@ -95,6 +96,11 @@ Private::Private(SettingsDialog *parent) pageItem = parent->addPage(cookiesModule, i18n(cookiesInfo.moduleName().toLocal8Bit())); pageItem->setIcon(KIcon(cookiesInfo.icon())); + KCModuleInfo proxyInfo("proxy.desktop"); + proxyModule = new KCModuleProxy(proxyInfo,parent); + pageItem = parent->addPage(proxyModule, i18n(proxyInfo.moduleName().toLocal8Bit())); + pageItem->setIcon(KIcon(proxyInfo.icon())); + widget = new QWidget; webkitUi.setupUi(widget); widget->layout()->setMargin(0); @@ -136,6 +142,7 @@ 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->shortcutsEditor, SIGNAL(keyChange()), this, SLOT(updateButtons())); connect(this, SIGNAL(applyClicked()), this, SLOT(saveSettings())); @@ -190,6 +197,7 @@ void SettingsDialog::saveSettings() ReKonfig::self()->writeConfig(); d->ebrowsingModule->save(); d->cookiesModule->save(); + d->proxyModule->save(); d->shortcutsEditor->save(); } @@ -199,6 +207,7 @@ bool SettingsDialog::hasChanged() return KConfigDialog::hasChanged() || d->ebrowsingModule->changed() || d->cookiesModule->changed() + || d->proxyModule->changed() ; } -- cgit v1.2.1