summaryrefslogtreecommitdiff
path: root/src/settings/settingsdialog.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-03-25 10:45:05 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-12 02:30:00 +0200
commitbaa03e5adc8a9022b64b77a6450491738724ab6d (patch)
treedb38025317a3af0cdaabca7518c733a9b1481653 /src/settings/settingsdialog.cpp
parentUpdate docs to 0.9.0, remove extra screenshots (unused). (diff)
downloadrekonq-baa03e5adc8a9022b64b77a6450491738724ab6d.tar.xz
Privacy tab settings
Clean up (again) rekonq settings, adding "advanced" and "privacy" sections and removing the "network" one, merged here and there with the other ones
Diffstat (limited to 'src/settings/settingsdialog.cpp')
-rw-r--r--src/settings/settingsdialog.cpp36
1 files changed, 24 insertions, 12 deletions
diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp
index ef01a32f..3e3a5bd4 100644
--- a/src/settings/settingsdialog.cpp
+++ b/src/settings/settingsdialog.cpp
@@ -40,11 +40,12 @@
#include "opensearchmanager.h"
// Widget Includes
-#include "networkwidget.h"
-#include "generalwidget.h"
+#include "advancedwidget.h"
#include "appearancewidget.h"
-#include "webkitwidget.h"
+#include "generalwidget.h"
+#include "privacywidget.h"
#include "tabswidget.h"
+#include "webkitwidget.h"
// KDE Includes
#include <KConfig>
@@ -68,8 +69,9 @@ private:
TabsWidget *tabsWidg;
AppearanceWidget *appearanceWidg;
WebKitWidget *webkitWidg;
- NetworkWidget *networkWidg;
-
+ PrivacyWidget *privacyWidg;
+ AdvancedWidget *advancedWidg;
+
KCModuleProxy *ebrowsingModule;
KShortcutsEditor *shortcutsEditor;
@@ -109,10 +111,16 @@ Private::Private(SettingsDialog *parent)
pageItem->setIcon(webkitIcon);
// -- 5
- networkWidg = new NetworkWidget(parent);
- networkWidg->layout()->setMargin(0);
- pageItem = parent->addPage(networkWidg , i18n("Network"));
- pageItem->setIcon(KIcon("preferences-system-network"));
+ privacyWidg = new PrivacyWidget(parent);
+ privacyWidg->layout()->setMargin(0);
+ pageItem = parent->addPage(privacyWidg, i18n("Privacy"));
+ pageItem->setIcon(KIcon("view-media-artist"));
+
+ // -- 6
+ advancedWidg = new AdvancedWidget(parent);
+ advancedWidg->layout()->setMargin(0);
+ pageItem = parent->addPage(advancedWidg, i18n("Advanced"));
+ pageItem->setIcon(KIcon("applications-system"));
// -- 7
shortcutsEditor = new KShortcutsEditor(rApp->mainWindow()->actionCollection(), parent);
@@ -155,8 +163,10 @@ SettingsDialog::SettingsDialog(QWidget *parent)
connect(d->tabsWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->appearanceWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->webkitWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
- connect(d->networkWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->ebrowsingModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
+ connect(d->advancedWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
+ connect(d->privacyWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
+
connect(d->shortcutsEditor, SIGNAL(keyChange()), this, SLOT(updateButtons()));
// save settings
@@ -189,7 +199,8 @@ void SettingsDialog::saveSettings()
d->tabsWidg->save();
d->appearanceWidg->save();
d->webkitWidg->save();
- d->networkWidg->save();
+ d->advancedWidg->save();
+ d->privacyWidg->save();
d->shortcutsEditor->save();
d->ebrowsingModule->save();
@@ -208,7 +219,8 @@ bool SettingsDialog::hasChanged()
|| d->tabsWidg->changed()
|| d->appearanceWidg->changed()
|| d->webkitWidg->changed()
- || d->networkWidg->changed()
+ || d->advancedWidg->changed()
+ || d->privacyWidg->changed()
|| d->ebrowsingModule->changed()
|| d->shortcutsEditor->isModified();
;