From 9dfe8f35cd98f89d9bad7d573f11b844ea5515b3 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 10 Aug 2009 00:03:35 +0200 Subject: Removed privacy settings and ported history ones into the General Group. --- src/CMakeLists.txt | 1 - src/mainwindow.cpp | 1 - src/settings.cpp | 8 ----- src/settings.h | 3 +- src/settings_general.ui | 58 +++++++++++++++++++++++++++++++++ src/settings_privacy.ui | 87 ------------------------------------------------- 6 files changed, 60 insertions(+), 98 deletions(-) delete mode 100644 src/settings_privacy.ui diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ce7b1f8d..45a2afb2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,7 +30,6 @@ KDE4_ADD_UI_FILES( rekonq_SRCS proxy.ui settings_general.ui settings_fonts.ui - settings_privacy.ui settings_proxy.ui settings_webkit.ui cleardata.ui diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index cf25e1b7..bde298f8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -451,7 +451,6 @@ void MainWindow::slotUpdateConfiguration() // ====== load Settings on main classes Application::networkAccessManager()->loadSettings(); -// FIXME (?) Application::cookieJar()->loadSettings(); Application::historyManager()->loadSettings(); } diff --git a/src/settings.cpp b/src/settings.cpp index e0f9e8e7..b5316ff5 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -43,7 +43,6 @@ //Ui Includes #include "ui_settings_general.h" #include "ui_settings_fonts.h" -#include "ui_settings_privacy.h" #include "ui_settings_proxy.h" #include "ui_settings_webkit.h" @@ -65,7 +64,6 @@ class Private private: Ui::general generalUi; Ui::fonts fontsUi; - Ui::privacy privacyUi; Ui::proxy proxyUi; Ui::webkit webkitUi; KCModuleProxy *ebrowsingModule; @@ -94,12 +92,6 @@ Private::Private(SettingsDialog *parent) pageItem = parent->addPage(widget , i18n("Fonts")); pageItem->setIcon(KIcon("preferences-desktop-font")); - widget = new QWidget; - privacyUi.setupUi(widget); - widget->layout()->setMargin(0); - pageItem = parent->addPage(widget , i18n("History")); - pageItem->setIcon(KIcon("view-history")); - KCModuleInfo cookiesInfo("cookies.desktop"); cookiesModule = new KCModuleProxy(cookiesInfo,parent); pageItem = parent->addPage(cookiesModule, i18n(cookiesInfo.moduleName().toLocal8Bit())); diff --git a/src/settings.h b/src/settings.h index 3b476ec1..0be89173 100644 --- a/src/settings.h +++ b/src/settings.h @@ -43,7 +43,8 @@ class SettingsDialog : public KConfigDialog public: SettingsDialog(QWidget *parent = 0); ~SettingsDialog(); - virtual bool hasChanged (); + + virtual bool hasChanged(); private: Private* const d; diff --git a/src/settings_general.ui b/src/settings_general.ui index 90136755..d40dff99 100644 --- a/src/settings_general.ui +++ b/src/settings_general.ui @@ -106,6 +106,59 @@ + + + + History + + + + + + Remove history items: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + After one day + + + + + After one week + + + + + After two weeks + + + + + After one month + + + + + After one year + + + + + Manually + + + + + + + @@ -127,6 +180,11 @@ QLineEdit
klineedit.h
+ + KComboBox + QComboBox +
kcombobox.h
+
diff --git a/src/settings_privacy.ui b/src/settings_privacy.ui deleted file mode 100644 index a716dc8d..00000000 --- a/src/settings_privacy.ui +++ /dev/null @@ -1,87 +0,0 @@ - - - privacy - - - - 0 - 0 - 461 - 313 - - - - Privacy - - - - - - History - - - - - - Remove history items: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - After one day - - - - - After one week - - - - - After two weeks - - - - - After one month - - - - - After one year - - - - - Manually - - - - - - - - - - - Qt::Vertical - - - - 20 - 136 - - - - - - - - - -- cgit v1.2.1