summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/qml/TimedButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'wayland/democompositor/qml/TimedButton.qml')
-rw-r--r--wayland/democompositor/qml/TimedButton.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/wayland/democompositor/qml/TimedButton.qml b/wayland/democompositor/qml/TimedButton.qml
index 012875a..2134e4d 100644
--- a/wayland/democompositor/qml/TimedButton.qml
+++ b/wayland/democompositor/qml/TimedButton.qml
@@ -54,7 +54,11 @@ Rectangle {
},
State {
name: "PRESSED"
+ },
+ State {
+ name: "TRIGGERED"
}
+
]
transitions: [ Transition {
@@ -111,8 +115,10 @@ Rectangle {
onReleased: {
if (containsMouse && parent.percent >= 100) {
parent.triggered()
+ parent.state = "TRIGGERED"
+ } else {
+ parent.state = "UNPRESSED"
}
- parent.state = "UNPRESSED"
}
onPositionChanged: {