diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-14 23:33:39 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-14 23:33:39 +0100 |
commit | 9731934d1c45b7e6f27b58b9083b23ecbc084288 (patch) | |
tree | 20ee22f4b68b75ac54bac2afd09edc038019bf45 /src/application.cpp | |
parent | Added credit for Johannes Troscher (diff) | |
download | rekonq-9731934d1c45b7e6f27b58b9083b23ecbc084288.tar.xz |
This patch cleans up encoding management, moving code to
its real position: The appearance settings widget.
In fact our code is actually changing "default" text encoding, not
the page one "on the fly"
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp index a49e1d80..9702c139 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -58,6 +58,8 @@ #include <ThreadWeaver/Weaver> #include <KAction> #include <KWindowSystem> +#include <KGlobal> +#include <KCharsets> // Qt Includes #include <QVBoxLayout> @@ -491,6 +493,9 @@ void Application::updateConfiguration() defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) ); defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) ); + // encodings + QString enc = ReKonfig::defaultEncoding(); + defaultSettings->setDefaultTextEncoding(enc); // ================ WebKit ============================ defaultSettings->setAttribute(QWebSettings::AutoLoadImages, ReKonfig::autoLoadImages()); |