diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 28 |
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(); |