1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Preferences: Fix font settings

This commit is contained in:
David Rosca 2015-02-08 11:38:38 +01:00
parent e4852e7d88
commit 8c068b1f87

View File

@ -59,6 +59,7 @@
#include <QColorDialog> #include <QColorDialog>
#include <QDesktopWidget> #include <QDesktopWidget>
#include <QNetworkDiskCache> #include <QNetworkDiskCache>
#include <QWebEngineSettings>
static QString createLanguageItem(const QString &lang) static QString createLanguageItem(const QString &lang)
{ {
@ -364,7 +365,6 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent)
//FONTS //FONTS
settings.beginGroup("Browser-Fonts"); settings.beginGroup("Browser-Fonts");
#if QTWEBENGINE_DISABLED
QWebEngineSettings* webSettings = QWebEngineSettings::globalSettings(); QWebEngineSettings* webSettings = QWebEngineSettings::globalSettings();
ui->fontStandard->setCurrentFont(QFont(settings.value("StandardFont", webSettings->fontFamily(QWebEngineSettings::StandardFont)).toString())); ui->fontStandard->setCurrentFont(QFont(settings.value("StandardFont", webSettings->fontFamily(QWebEngineSettings::StandardFont)).toString()));
ui->fontCursive->setCurrentFont(QFont(settings.value("CursiveFont", webSettings->fontFamily(QWebEngineSettings::CursiveFont)).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->sizeFixed->setValue(settings.value("FixedFontSize", webSettings->fontSize(QWebEngineSettings::DefaultFixedFontSize)).toInt());
ui->sizeMinimum->setValue(settings.value("MinimumFontSize", webSettings->fontSize(QWebEngineSettings::MinimumFontSize)).toInt()); ui->sizeMinimum->setValue(settings.value("MinimumFontSize", webSettings->fontSize(QWebEngineSettings::MinimumFontSize)).toInt());
ui->sizeMinimumLogical->setValue(settings.value("MinimumLogicalFontSize", webSettings->fontSize(QWebEngineSettings::MinimumLogicalFontSize)).toInt()); ui->sizeMinimumLogical->setValue(settings.value("MinimumLogicalFontSize", webSettings->fontSize(QWebEngineSettings::MinimumLogicalFontSize)).toInt());
#endif
settings.endGroup(); settings.endGroup();
//KEYBOARD SHORTCUTS //KEYBOARD SHORTCUTS