summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2023-02-24 14:52:34 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2023-03-01 08:44:45 +0000
commit62334c2b7a0f128aa5da7985ddbddcad6de94719 (patch)
tree8bf1da8b8642cd1fa7452be8d0648c93d71fc343
parent31ab5f40ff748def1c3918169c27200a0edbf0fe (diff)
downloadqt-creator-62334c2b7a0f128aa5da7985ddbddcad6de94719.tar.gz
QmlDesigner: Add caption property to ColorEditor for legacy support
Old Qt5 specifics sheets specify caption property for ColorEditor, and fail to load if the property doesn't exist, so define the property for compatibility purposes. Fixes: QDS-9256 Change-Id: I6b56d98fd711d21272e914f6e167aa1cf8e07070 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml
index 4742f1c027..7c7f92be25 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml
@@ -40,6 +40,8 @@ SecondColumnLayout {
property bool __block: false
+ property string caption // Legacy Qt5 specifics sheets compatibility
+
function resetShapeColor() {
colorEditor.backendValue.resetValue()
}