summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-07 20:20:15 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-07 20:40:39 +0200
commit074a549f33e199175a4c080c88ed3a9b6d91d1c0 (patch)
treee718b456c858b9ce522fd38244755355d7127a6e /src/mainwindow.cpp
parentFixed new tab QKeySequence (diff)
downloadrekonq-074a549f33e199175a4c080c88ed3a9b6d91d1c0.tar.xz
Added settings webkit section, with rekonq personal settings.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 21ceb8ee..d58208ba 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -332,12 +332,28 @@ void MainWindow::slotUpdateConfiguration()
defaultSettings->setFontFamily(QWebSettings::FixedFont, fixedFont.family());
defaultSettings->setFontSize(QWebSettings::DefaultFixedFontSize, fnSize);
- // =========== Privacy ==============
- bool arePluginsEnabled = ReKonfig::enablePlugins();
- bool isJavascriptEnabled = ReKonfig::enableJavascript();
-
- defaultSettings->setAttribute(QWebSettings::PluginsEnabled, arePluginsEnabled);
- defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, isJavascriptEnabled);
+// // =========== Privacy ==============
+// bool arePluginsEnabled = ReKonfig::enablePlugins();
+// bool isJavascriptEnabled = ReKonfig::enableJavascript();
+//
+// defaultSettings->setAttribute(QWebSettings::PluginsEnabled, arePluginsEnabled);
+// defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, isJavascriptEnabled);
+
+ // ================ WebKit ============================
+ defaultSettings->setAttribute(QWebSettings::AutoLoadImages, ReKonfig::autoLoadImages());
+ defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, ReKonfig::javascriptEnabled());
+ defaultSettings->setAttribute(QWebSettings::JavaEnabled, ReKonfig::javaEnabled());
+ defaultSettings->setAttribute(QWebSettings::PluginsEnabled, ReKonfig::pluginsEnabled());
+ defaultSettings->setAttribute(QWebSettings::PrivateBrowsingEnabled, ReKonfig::privateBrowsingEnabled());
+ defaultSettings->setAttribute(QWebSettings::JavascriptCanOpenWindows, ReKonfig::javascriptCanOpenWindows());
+ defaultSettings->setAttribute(QWebSettings::JavascriptCanAccessClipboard, ReKonfig::javascriptCanAccessClipboard());
+ defaultSettings->setAttribute(QWebSettings::DeveloperExtrasEnabled, ReKonfig::developerExtrasEnabled());
+ defaultSettings->setAttribute(QWebSettings::LinksIncludedInFocusChain, ReKonfig::linksIncludedInFocusChain());
+ defaultSettings->setAttribute(QWebSettings::ZoomTextOnly, ReKonfig::zoomTextOnly());
+ defaultSettings->setAttribute(QWebSettings::PrintElementBackgrounds, ReKonfig::printElementBackgrounds());
+ defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, ReKonfig::offlineStorageDatabaseEnabled());
+ defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, ReKonfig::offlineWebApplicationCacheEnabled());
+ defaultSettings->setAttribute(QWebSettings::LocalStorageDatabaseEnabled, ReKonfig::localStorageDatabaseEnabled());
// ====== load Settings on main classes
Application::networkAccessManager()->loadSettings();