summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-23 02:52:59 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-23 02:52:59 +0100
commit27c78fdaae6e4deaf178da81a9c18806ed571327 (patch)
tree032672ea023a1dda58cbb9b6fcd0a8b22a018543 /src/mainwindow.cpp
parentSave memory. (diff)
downloadrekonq-27c78fdaae6e4deaf178da81a9c18806ed571327.tar.xz
Removed dpi option.
Doesn't work well with fixed font sites
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c7da7512..a6857153 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -502,15 +502,15 @@ void MainWindow::updateConfiguration()
int fnSize = ReKonfig::fontSize();
int minFnSize = ReKonfig::minFontSize();
- // font size / dpi WARNING: is this right? why we need this?
- float toPix = m_view->logicalDpiY()/72.0;
- if (toPix < 96.0/72.0)
- toPix = 96.0/72.0;
+// // font size / dpi WARNING: is this right? why we need this?
+// float toPix = m_view->logicalDpiY()/72.0;
+// if (toPix < 96.0/72.0)
+// toPix = 96.0/72.0;
QFont standardFont = ReKonfig::standardFont();
defaultSettings->setFontFamily(QWebSettings::StandardFont, standardFont.family());
- defaultSettings->setFontSize(QWebSettings::DefaultFontSize, fnSize*toPix);
- defaultSettings->setFontSize(QWebSettings::MinimumFontSize, minFnSize*toPix);
+ defaultSettings->setFontSize(QWebSettings::DefaultFontSize, fnSize);
+ defaultSettings->setFontSize(QWebSettings::MinimumFontSize, minFnSize);
QFont fixedFont = ReKonfig::fixedFont();
defaultSettings->setFontFamily(QWebSettings::FixedFont, fixedFont.family());