KGlobalSettings replaced by QFontDatabase for smallestReadableFont

This commit is contained in:
Sebastian Kügler 2013-10-05 01:00:02 +02:00
parent 1d42fdb7a0
commit 38fb14baaa

View File

@ -23,6 +23,7 @@
#include <QApplication>
#include <QFile>
#include <QFileInfo>
#include <QFontDatabase>
#include <kdirwatch.h>
#include <kglobalsettings.h>
@ -339,7 +340,7 @@ const QString ThemePrivate::processStyleSheet(const QString &css)
QFont font = QApplication::font();
elements["%fontsize"] = QString("%1pt").arg(font.pointSize());
elements["%fontfamily"] = font.family().split('[').first();
elements["%smallfontsize"] = QString("%1pt").arg(KGlobalSettings::smallestReadableFont().pointSize());
elements["%smallfontsize"] = QString("%1pt").arg(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont).pointSize());
QHash<QString, QString>::const_iterator it = elements.constBegin();
QHash<QString, QString>::const_iterator itEnd = elements.constEnd();