QFontDialog doesn't have the capability that KFontDialog had,Now all font selection dialogs use KFontChooserDialog (from KWidgetAddons),
bump KF5 minimum required version to 5.69.0.
KFontChooserDialog has some pros over QFontDialog:
- If the font to pre-select in KFontChooser doesn't have the styleName
property set, the dialog will try and select the correct style (usually
that works); this is useful since we want to save/load fonts with
"Regular"-like styles without setting that property so that setBold(true)
can work properly
- Fractional font sizes, e.g. where with10.5 pt (QFontDialog only supports int)
the latter when using adjustAllFonts() you could change only one of- KFontChooserDialog will discard "Regular"-like styleName prop. after
the font family, the font style, theuser has selected a font size, e.g., you could changewhich means less workarounds in the fonts
the size and keep each respective font families for "General" and "Toolbar" as is KCM code.
When using ajustAllFonts(),Do not check for immutability:
try to- The set the fixed width/Monospace fontters generated by KConfig already do that
from the font family the user has selected, otherwise fallback to whatever- The QML FontWidget check for immutability and disable the relevant
QFontDatabase::systemFont(QFontDatabase::FixedFont) gets. font widget
Depends on D27785adjustAllFonts() doesn't take any args, change the qml code accrodingly.