From 8c068b1f8770c28b361ccb5337aed761d5cec047 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 8 Feb 2015 11:38:38 +0100 Subject: [PATCH] Preferences: Fix font settings --- src/lib/preferences/preferences.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp index f72fbe04e..b87805811 100644 --- a/src/lib/preferences/preferences.cpp +++ b/src/lib/preferences/preferences.cpp @@ -59,6 +59,7 @@ #include #include #include +#include static QString createLanguageItem(const QString &lang) { @@ -364,7 +365,6 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent) //FONTS settings.beginGroup("Browser-Fonts"); -#if QTWEBENGINE_DISABLED QWebEngineSettings* webSettings = QWebEngineSettings::globalSettings(); ui->fontStandard->setCurrentFont(QFont(settings.value("StandardFont", webSettings->fontFamily(QWebEngineSettings::StandardFont)).toString())); ui->fontCursive->setCurrentFont(QFont(settings.value("CursiveFont", webSettings->fontFamily(QWebEngineSettings::CursiveFont)).toString())); @@ -376,7 +376,6 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent) ui->sizeFixed->setValue(settings.value("FixedFontSize", webSettings->fontSize(QWebEngineSettings::DefaultFixedFontSize)).toInt()); ui->sizeMinimum->setValue(settings.value("MinimumFontSize", webSettings->fontSize(QWebEngineSettings::MinimumFontSize)).toInt()); ui->sizeMinimumLogical->setValue(settings.value("MinimumLogicalFontSize", webSettings->fontSize(QWebEngineSettings::MinimumLogicalFontSize)).toInt()); -#endif settings.endGroup(); //KEYBOARD SHORTCUTS