forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
d3d621a7b3
commit
383315b64a
@@ -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
|
||||||
|
Reference in New Issue
Block a user