Adjust Aurorae Menu Button close behavior to KCommonDecoration

See 27b667f49562963ea3f13d5b9dd56ff846feb75a
This commit is contained in:
Martin Gräßlin 2012-03-01 13:33:35 +01:00
parent 292ceee506
commit 2b2976aa20

View file

@ -25,7 +25,7 @@ DecorationButton {
} }
Timer { Timer {
id: timer id: timer
interval: decoration.doubleClickInterval interval: 150
repeat: false repeat: false
onTriggered: decoration.menuClicked() onTriggered: decoration.menuClicked()
} }
@ -46,6 +46,7 @@ DecorationButton {
} }
onReleased: { onReleased: {
parent.pressed = false; parent.pressed = false;
timer.stop();
} }
onExited: { onExited: {
if (!parent.pressed) { if (!parent.pressed) {