summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-23 03:10:56 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-23 03:10:56 +0100
commited1a5bac8bb6e03063df1f5c499a6fdcfc14d9a5 (patch)
tree3405a9183b891ccb93b46c8f8888924e63d82499 /src/mainwindow.cpp
parentRemoved dpi option. (diff)
downloadrekonq-ed1a5bac8bb6e03063df1f5c499a6fdcfc14d9a5.tar.xz
Saving 4 bytes per tab :)
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a6857153..f2809beb 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -212,6 +212,9 @@ void MainWindow::setupToolbars()
void MainWindow::postLaunch()
{
+ // KActionCollection read settings
+ m_ac->readSettings();
+
// notification system
connect(m_view, SIGNAL(showStatusBarMessage(const QString&, Rekonq::Notify)), this, SLOT(notifyMessage(const QString&, Rekonq::Notify)));
connect(m_view, SIGNAL(linkHovered(const QString&)), this, SLOT(notifyMessage(const QString&)));
@@ -239,9 +242,6 @@ void MainWindow::postLaunch()
// accept d'n'd
setAcceptDrops(true);
-
- // KActionCollection read settings
- m_ac->readSettings();
}
@@ -502,11 +502,6 @@ 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;
-
QFont standardFont = ReKonfig::standardFont();
defaultSettings->setFontFamily(QWebSettings::StandardFont, standardFont.family());
defaultSettings->setFontSize(QWebSettings::DefaultFontSize, fnSize);