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>
This commit is contained in:
Miikka Heikkinen
2023-02-24 14:52:34 +02:00
committed by Thomas Hartmann
parent 31ab5f40ff
commit 62334c2b7a

View File

@@ -40,6 +40,8 @@ SecondColumnLayout {
property bool __block: false
property string caption // Legacy Qt5 specifics sheets compatibility
function resetShapeColor() {
colorEditor.backendValue.resetValue()
}