diff --git a/theme.cpp b/theme.cpp index cdb7fc625..3849df2a6 100644 --- a/theme.cpp +++ b/theme.cpp @@ -859,16 +859,20 @@ void Theme::setFont(const QFont &font, FontRole role) QFont Theme::font(FontRole role) const { switch (role) { - case DesktopFont: - { + case DesktopFont: { KConfigGroup cg(KGlobal::config(), "General"); return cg.readEntry("desktopFont", d->generalFont); - } - break; + } + break; + case DefaultFont: default: return d->generalFont; break; + + case SmallestFont: + return KGlobalSettings::smallestReadableFont(); + break; } return d->generalFont; diff --git a/theme.h b/theme.h index b5118276b..7536f3dcf 100644 --- a/theme.h +++ b/theme.h @@ -78,7 +78,8 @@ class PLASMA_EXPORT Theme : public QObject enum FontRole { DefaultFont = 0, /**< The standard text font */ - DesktopFont /**< The standard text font */ + DesktopFont, /**< The standard text font */ + SmallestFont /**< The smallest readable font */ }; /**