add missing smallest font support for qml and js widgets
(cherry picked from commit 7a15d198c629fe1b642e727253e369bfdceb725c) (to fix compilation of kde-runtime with kdelibs master)
This commit is contained in:
parent
0ab9bf2524
commit
df4813ba2c
@ -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;
|
||||
|
||||
case DefaultFont:
|
||||
default:
|
||||
return d->generalFont;
|
||||
break;
|
||||
|
||||
case SmallestFont:
|
||||
return KGlobalSettings::smallestReadableFont();
|
||||
break;
|
||||
}
|
||||
|
||||
return d->generalFont;
|
||||
|
Loading…
Reference in New Issue
Block a user