From bb3b974040e9fb4c0bc00019b1e3e03bb8aa44ef Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 23 Apr 2010 19:34:02 +0200 Subject: New dns prefetch webkit property and updated local storage one --- src/mainwindow.cpp | 5 ++- src/rekonq.kcfg | 5 ++- src/settings/settings_webkit.ui | 85 ++++++++++++++++++++++------------------- src/settings/settingsdialog.cpp | 3 +- 4 files changed, 55 insertions(+), 43 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index cb90f818..fe00ee7e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -572,6 +572,7 @@ void MainWindow::updateConfiguration() // ================ WebKit ============================ defaultSettings->setAttribute(QWebSettings::AutoLoadImages, ReKonfig::autoLoadImages()); + defaultSettings->setAttribute(QWebSettings::DnsPrefetchEnabled, ReKonfig::dnsPrefetch()); defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, ReKonfig::javascriptEnabled()); defaultSettings->setAttribute(QWebSettings::JavaEnabled, ReKonfig::javaEnabled()); defaultSettings->setAttribute(QWebSettings::JavascriptCanOpenWindows, ReKonfig::javascriptCanOpenWindows()); @@ -588,8 +589,8 @@ void MainWindow::updateConfiguration() // ===== HTML 5 features WebKit support ====== defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, ReKonfig::offlineStorageDatabaseEnabled()); defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, ReKonfig::offlineWebApplicationCacheEnabled()); - defaultSettings->setAttribute(QWebSettings::LocalStorageDatabaseEnabled, ReKonfig::localStorageDatabaseEnabled()); - if(ReKonfig::localStorageDatabaseEnabled()) + defaultSettings->setAttribute(QWebSettings::LocalStorageEnabled, ReKonfig::localStorageEnabled()); + if(ReKonfig::localStorageEnabled()) { QString path = KStandardDirs::locateLocal("cache", QString("WebkitLocalStorage/rekonq"), true); path.remove("rekonq"); diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index 860809cd..dd46624f 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -117,6 +117,9 @@ true + + true + true @@ -147,7 +150,7 @@ true - + true diff --git a/src/settings/settings_webkit.ui b/src/settings/settings_webkit.ui index e424fd9c..f2e616c8 100644 --- a/src/settings/settings_webkit.ui +++ b/src/settings/settings_webkit.ui @@ -6,8 +6,8 @@ 0 0 - 437 - 346 + 643 + 560 @@ -17,99 +17,106 @@ WebKit Settings - + Autoload images - + + + + + 0 + 0 + + + + Qt::Vertical + + + + Links included in focus chain - - - - - 0 - 0 - - + + - JavaScript support + prefetch DNS entries - + Zoom text only - - + + + + + 0 + 0 + + - Java support + JavaScript support - + Print element backgrounds - + Offline storage database - - + + - Offline web application cache + Java support - - + + - Local storage database + JavaScript can open windows - - + + - JavaScript can open windows + Offline web application cache - + JavaScript can access clipboard - - - - - 0 - 0 - - - - Qt::Vertical + + + + Local Storage diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp index 35f753d3..f02b9ac5 100644 --- a/src/settings/settingsdialog.cpp +++ b/src/settings/settingsdialog.cpp @@ -174,6 +174,7 @@ SettingsDialog::~SettingsDialog() void SettingsDialog::setWebSettingsToolTips() { d->webkitUi.kcfg_autoLoadImages->setToolTip(i18n("Specifies whether images are automatically loaded in web pages.")); + d->webkitUi.kcfg_dnsPrefetch->setToolTip( i18n("Specifies whether WebKit will try to pre-fetch DNS entries to speed up browsing.") ); d->webkitUi.kcfg_javascriptEnabled->setToolTip(i18n("Enables the execution of JavaScript programs.")); d->webkitUi.kcfg_javaEnabled->setToolTip(i18n("Enables support for Java applets.")); d->webkitUi.kcfg_pluginsEnabled->setToolTip(i18n("Enables support for plugins in web pages.")); @@ -184,7 +185,7 @@ void SettingsDialog::setWebSettingsToolTips() d->webkitUi.kcfg_printElementBackgrounds->setToolTip(i18n("If enabled, background colors and images are also drawn when the page is printed.")); d->webkitUi.kcfg_offlineStorageDatabaseEnabled->setToolTip(i18n("Enables support for the HTML 5 offline storage feature.")); d->webkitUi.kcfg_offlineWebApplicationCacheEnabled->setToolTip(i18n("Enables support for the HTML 5 web application cache feature.")); - d->webkitUi.kcfg_localStorageDatabaseEnabled->setToolTip(i18n("Enables support for the HTML 5 local storage feature.")); + d->webkitUi.kcfg_localStorageEnabled->setToolTip(i18n("Enables support for the HTML 5 local storage feature.")); } -- cgit v1.2.1