summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorJonas M. Gastal <jgastal@gmail.com>2009-08-19 22:03:56 -0300
committerJonas M. Gastal <jgastal@gmail.com>2009-08-19 22:03:56 -0300
commitf37aadbb2de64d9a8f302cf89c004eccb9834e93 (patch)
tree86d70a66a954c6e53455ded5ad799df435dc7f80 /src/mainwindow.cpp
parentSome work on WebPage class.. (diff)
downloadrekonq-f37aadbb2de64d9a8f302cf89c004eccb9834e93.tar.xz
Implements the ability of the user to apply a user defined CSS to all web pages.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4ed885bc..29044745 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -447,6 +447,11 @@ void MainWindow::slotUpdateConfiguration()
defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, ReKonfig::offlineStorageDatabaseEnabled());
defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, ReKonfig::offlineWebApplicationCacheEnabled());
defaultSettings->setAttribute(QWebSettings::LocalStorageDatabaseEnabled, ReKonfig::localStorageDatabaseEnabled());
+ /**
+ * Applies user defined CSS to all open webpages. If there no longer is a
+ * user defined CSS removes it from all open webpages.
+ */
+ defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS());
// ====== load Settings on main classes
Application::networkAccessManager()->loadSettings();