From 08668e71da740b2bc8feb0138730fc95127fbc76 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Tue, 22 Feb 2022 11:43:06 +0100 Subject: [PATCH] QmlDesigner: Disable fill type outside base state Disable fill type ComboBox in ColorEditor when not in base state. Add tool tip to make user aware. Task-number: QDS-6184 Change-Id: Iee5644fff16fe93f2090e1cb117e96bb436fe1dd Reviewed-by: Thomas Hartmann Reviewed-by: Reviewed-by: Leena Miettinen --- .../imports/HelperWidgets/ColorEditor.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml index 30dbeccea9e..f2df9c0d042 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml @@ -386,6 +386,7 @@ SecondColumnLayout { property ListModel items: ListModel {} + enabled: isBaseState implicitWidth: StudioTheme.Values.colorEditorPopupCmoboBoxWidth width: implicitWidth actionIndicatorVisible: false @@ -442,6 +443,13 @@ SecondColumnLayout { } colorEditor.updateThumbnail() } + + ToolTipArea { + enabled: !isBaseState + anchors.fill: parent + tooltip: qsTr("Fill type can only be changed in base state.") + z: 10 + } } ExpandingSpacer {}