Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Handle the font family name a little nicer in the font resource picker.

Wolthera van Hövell tot Westerflier7f3faeaef5ba
diff --git a/plugins/dockers/textproperties/qml/FontResourceDropdown.qml b/plugins/dockers/textproperties/qml/FontResourceDropdown.qml
index 8b3fc6abc3..318310283f 100644
--- a/plugins/dockers/textproperties/qml/FontResourceDropdown.qml
+++ b/plugins/dockers/textproperties/qml/FontResourceDropdown.qml
@@ -78,6 +78,8 @@ Button {
text: fontFamilyDelegate.fontName;
anchors.top: parent.top;
anchors.left: parent.left;
+ elide: Text.ElideRight;
+ width: parent.width;
color: parent.highlighted? palette.highlightedText: palette.text;
}
@@ -180,6 +182,10 @@ Button {
tagActionsContextMenu.popup()
}
+ ToolTip.text: fontDelegateItem.fontName;
+ ToolTip.visible: containsMouse;
+ ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval;
+
}
}
}