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++
Don't use reuse items on ListView.
Wolthera van Hövell tot Westerflier8e3c696babb2
diff --git a/plugins/dockers/textproperties/qml/FontResourceDropdown.qml b/plugins/dockers/textproperties/qml/FontResourceDropdown.qmlindex 06848f3681..3d53838731 100644--- a/plugins/dockers/textproperties/qml/FontResourceDropdown.qml+++ b/plugins/dockers/textproperties/qml/FontResourceDropdown.qml@@ -49,9 +49,10 @@ Button {property var meta: model.metadata;// TODO: change this to use the text locale, if possible.property string sample: "";- onMetaChanged: {- sample = familyCmb.modelWrapper.localizedSampleFromMetadata(meta, locales, "");- fontName = familyCmb.modelWrapper.localizedNameFromMetadata(meta, locales, model.name);++ Component.onCompleted: {+ fontName = modelWrapper.localizedNameFromMetadata(meta, locales, model.name);+ sample = modelWrapper.localizedSampleFromMetadata(meta, locales, "");}/// When updating the model wrapper, the "model" doesn't always update on the delegate, so we need to manually loaddiff --git a/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml b/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qmlindex e89546b022..61bc367586 100644--- a/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml+++ b/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml@@ -65,7 +65,6 @@ TextPropertyBase {Layout.preferredHeight: contentHeight;Layout.minimumHeight: noContentLabel.contentHeight;spacing: columnSpacing;- reuseItems: true;Label {id: noContentLabel;@@ -249,7 +248,6 @@ TextPropertyBase {clip: true;implicitHeight: Math.min(contentHeight, 300);width: completerPopup.width;- reuseItems: true;ScrollBar.vertical: ScrollBar {}diff --git a/plugins/dockers/textproperties/qml/ResourceView.qml b/plugins/dockers/textproperties/qml/ResourceView.qmlindex 251b5ffa9f..af58d3f896 100644--- a/plugins/dockers/textproperties/qml/ResourceView.qml+++ b/plugins/dockers/textproperties/qml/ResourceView.qml@@ -186,7 +186,6 @@ Control {anchors.fill: parent;id: view;currentIndex: modelWrapper.currentIndex;- reuseItems: true;ScrollBar.vertical: ScrollBar {}}