From b8d0828d37fdf9972cc9debd7d8fa43b4d4a6d74 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 24 Feb 2023 14:52:34 +0200 Subject: [PATCH] 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 Reviewed-by: --- .../imports/HelperWidgets/ColorEditor.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml index 4742f1c0277..7c7f92be258 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() }