add missing smallest font support for qml and js widgets
This commit is contained in:
parent
6df8dc58dc
commit
db97a9b6cb
12
theme.cpp
12
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;
|
||||
|
Loading…
Reference in New Issue
Block a user