diff options
author | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-02-19 07:52:49 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-02-19 09:41:57 +0000 |
commit | 962999f03bb82ab256211e1a187751a618d776cf (patch) | |
tree | b564af5886ad37156a642f6e100e3763f204caca | |
parent | 705c6f36fde31fb2286dc26776411bd281dcf7b5 (diff) |
Open close button also by tapping
Change-Id: I6f195652437d47cc11a383ba1f996891365019dc
Task-number: QTRD-3817
Reviewed-by: Kimmo Ollila <kimmo.ollila@theqtcompany.com>
-rw-r--r-- | qml/Main.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qml/Main.qml b/qml/Main.qml index e8e3ba3..be81956 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -230,8 +230,10 @@ Window { drag.maximumY: 0 onClicked: { - if (applicationCloseButton.y < -applicationCloseButton.height / 2) + if (applicationCloseButton.y < -applicationCloseButton.height / 2) { + applicationCloseButton.y = 0 return; + } engine.state = "app-closing" applicationCloseButton.y = -applicationCloseButton.height * .6 |