summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-31 23:53:40 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-31 23:53:40 +0200
commit3af01d702411c2f724c87417a4b3bd99d7e8d53e (patch)
tree38670385b7ec14517a7282707311456f6787aafb /src
parentMerge commit 'refs/merge-requests/126' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-3af01d702411c2f724c87417a4b3bd99d7e8d53e.tar.xz
Minor change to better debug fonts DPI..
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 732bb273..9620feb8 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -447,10 +447,12 @@ void Application::updateConfiguration()
int defaultFontSize = ReKonfig::defaultFontSize();
int minimumFontSize = ReKonfig::minFontSize();
- float toPix = mainWindow()->currentTab()->view()->logicalDpiY()/72.0;
-
- if (toPix < 96.0/72.0)
- toPix = 96.0/72.0;
+ int logDpiY = mainWindow()->currentTab()->view()->logicalDpiY();
+ kDebug() << "Logical Dot per Inch Y: " << logDpiY;
+
+ float toPix = (logDpiY < 96.0)
+ ? 96.0/72.0
+ : logDpiY/72.0 ;
defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) );
defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) );