summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml
index 6e4f44ae73..e261ebed67 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml
@@ -60,7 +60,8 @@ Rectangle {
State {
name: "hovered"
when: actionIndicator.hover && !actionIndicator.pressed
- && !myControl.edit && !myControl.drag && myControl.enabled
+ && (!myControl || (!myControl.edit && !myControl.drag))
+ && actionIndicator.enabled
PropertyChanges {
target: actionIndicatorIcon
scale: 1.2
@@ -68,7 +69,7 @@ Rectangle {
},
State {
name: "disabled"
- when: !myControl.enabled
+ when: !actionIndicator.enabled
PropertyChanges {
target: actionIndicatorIcon
color: StudioTheme.Values.themeTextColorDisabled