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

Fix highlight for OpenType features dropdown in text properties docker.

Wolthera van Hövell tot Westerflierae2aa236b5db
diff --git a/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml b/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml
index aa38313f71..89cd5b4b3e 100644
--- a/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml
+++ b/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml
@@ -141,6 +141,7 @@ TextPropertyBase {
}
Kis.ToolTipBase {
+ parent: activeFeatureControl;
text: activeFeatureDelegate.toolTip;
visible: activeFeatureControl.hovered;
}
@@ -148,6 +149,7 @@ TextPropertyBase {
delegate: OpenTypeFeatureDelegate {
width: ListView.view.width;
required property var modelData;
+ required property int index;
name: modelData.display;
toolTip: name;
sample: activeFeatureDelegate.sample;
@@ -163,6 +165,7 @@ TextPropertyBase {
activeFeatureControl.currentIndex = index;
activeFeatureControl.popup.close();
}
+ highlighted: activeFeatureControl.highlightedIndex === index;
}
onCurrentValueChanged: {