Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Ensure the font family warning is added to the tooltip for the given style preset.
Wolthera van Hövell tot Westerfliera168a7392f2e
diff --git a/plugins/dockers/textproperties/qml/TextProperties.qml b/plugins/dockers/textproperties/qml/TextProperties.qmlindex 9c38362f6a..d33365b0b2 100644--- a/plugins/dockers/textproperties/qml/TextProperties.qml+++ b/plugins/dockers/textproperties/qml/TextProperties.qml@@ -151,7 +151,8 @@ Rectangle {presetView.applyPreset();}- ToolTip.text: typeof presetDelegate.meta.description !== 'undefined'? presetDelegate.model.name + "\n" + presetDelegate.meta.description: presetDelegate.model.name;+ readonly property string missingFontName : i18nc("%1 is name of a font family", "Font Family \"%1\" is missing on this machine. This style preset may not work correctly.", presetDelegate.meta.primary_font_family);+ ToolTip.text: (typeof presetDelegate.meta.description !== 'undefined'? presetDelegate.model.name + "\n" + presetDelegate.meta.description: presetDelegate.model.name) + (missingFamily.visible? "\n"+ missingFontName: "");ToolTip.visible: containsMouse;ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval;