diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-11-30 01:15:57 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-12-03 22:14:44 +0100 |
commit | 178947c5e58a388660d101b8f354cdb3eae0cf02 (patch) | |
tree | 8049f03cddac1006d713ff28560d754bbb447f4e /src/webtab/webpage.cpp | |
parent | Move "custom CSS path" from Appearance to Advanced settings (diff) | |
download | rekonq-178947c5e58a388660d101b8f354cdb3eae0cf02.tar.xz |
Added option for global zoom settings :)
BUG: 307477
Diffstat (limited to 'src/webtab/webpage.cpp')
-rw-r--r-- | src/webtab/webpage.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp index c488ee9b..e4ff22d5 100644 --- a/src/webtab/webpage.cpp +++ b/src/webtab/webpage.cpp @@ -579,14 +579,13 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) void WebPage::loadStarted() { // set zoom factor - QString val; KSharedConfig::Ptr config = KGlobal::config(); KConfigGroup group(config, "Zoom"); - val = group.readEntry(_loadingUrl.host(), QString("10")); + QString stringValue = group.readEntry(_loadingUrl.host(), QString::number(ReKonfig::defaultZoom())); - int value = val.toInt(); + int value = stringValue.toInt(); if (value != 10) - mainFrame()->setZoomFactor(QVariant(value).toReal() / 10); // Don't allox max +1 values + mainFrame()->setZoomFactor(value / 10.0); // Don't allox max +1 values } |