From baa03e5adc8a9022b64b77a6450491738724ab6d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 25 Mar 2012 10:45:05 +0200 Subject: 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 --- src/settings/webkitwidget.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/settings/webkitwidget.cpp') diff --git a/src/settings/webkitwidget.cpp b/src/settings/webkitwidget.cpp index 0f7a4b3d..31224f05 100644 --- a/src/settings/webkitwidget.cpp +++ b/src/settings/webkitwidget.cpp @@ -28,9 +28,6 @@ #include "webkitwidget.h" #include "webkitwidget.moc" -// Auto Includes -#include "rekonq.h" - WebKitWidget::WebKitWidget(QWidget *parent) : QWidget(parent) @@ -38,9 +35,6 @@ WebKitWidget::WebKitWidget(QWidget *parent) { setupUi(this); setWebSettingsToolTips(); - - updateJavascriptSettings(ReKonfig::javascriptEnabled()); - connect(kcfg_javascriptEnabled, SIGNAL(clicked(bool)), this, SLOT(updateJavascriptSettings(bool))); } @@ -70,17 +64,8 @@ void WebKitWidget::setWebSettingsToolTips() kcfg_dnsPrefetch->setToolTip(i18n("Specifies whether WebKit will try to prefetch DNS entries to speed up browsing.")); kcfg_printElementBackgrounds->setToolTip(i18n("If enabled, background colors and images are also drawn when the page is printed.")); kcfg_javascriptEnabled->setToolTip(i18n("Enables the execution of JavaScript programs.")); - kcfg_javascriptCanOpenWindows->setToolTip(i18n("If enabled, JavaScript programs are allowed to open new windows.")); - kcfg_javascriptCanAccessClipboard->setToolTip(i18n("If enabled, JavaScript programs are allowed to read from and to write to the clipboard.")); kcfg_javaEnabled->setToolTip(i18n("Enables support for Java applets.")); kcfg_offlineStorageDatabaseEnabled->setToolTip(i18n("Enables support for the HTML 5 offline storage feature.")); kcfg_offlineWebApplicationCacheEnabled->setToolTip(i18n("Enables support for the HTML 5 web application cache feature.")); kcfg_localStorageEnabled->setToolTip(i18n("Enables support for the HTML 5 local storage feature.")); } - - -void WebKitWidget::updateJavascriptSettings(bool b) -{ - kcfg_javascriptCanAccessClipboard->setEnabled(b); - kcfg_javascriptCanOpenWindows->setEnabled(b); -} -- cgit v1.2.1