QmlDesigner: Fix DoubleButton state

Fix an issue that appears when pressing the button and moving away from
it but still hold the mouse button down.

Change-Id: I06b456e410352862ea28f04e7cfaf3bdb27ae7d4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Henning Gruendl
2023-02-23 17:54:47 +01:00
committed by Henning Gründl
parent d3d621a7b3
commit 383315b64a

View File

@@ -479,6 +479,11 @@ Item {
color: doubleButton.style.icon.interaction color: doubleButton.style.icon.interaction
} }
}, },
State {
name: "pressedButNotHovered"
when: doubleButton.enabled && !mouseArea.containsMouse && mouseArea.pressed
extend: "hover"
},
State { State {
name: "disable" name: "disable"
when: !doubleButton.enabled when: !doubleButton.enabled