diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-02-17 11:37:03 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-17 11:37:03 +0100 |
commit | 9ef983d05df921d47cc0827670a8e3481bcc84ef (patch) | |
tree | 0e38f79c465401c197554ba325101711a3e6c670 /examples | |
parent | 04ab2428e004f01f630eb5117255bb85f5390fb4 (diff) | |
parent | a20948b726c1e0edd70761e8e115a53ba5526a51 (diff) | |
download | qtquickcontrols-9ef983d05df921d47cc0827670a8e3481bcc84ef.tar.gz |
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/controls/touch/main.qml | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/examples/quick/controls/touch/main.qml b/examples/quick/controls/touch/main.qml index ab5d534f..163ec937 100644 --- a/examples/quick/controls/touch/main.qml +++ b/examples/quick/controls/touch/main.qml @@ -52,16 +52,6 @@ ApplicationWindow { anchors.fill: parent } - // Implements back key navigation - Keys.onReleased: { - if (event.key === Qt.Key_Back) { - if (stackView.depth > 1) { - stackView.pop(); - event.accepted = true; - } else { Qt.quit(); } - } - } - toolBar: BorderImage { border.bottom: 8 source: "images/toolbar.png" @@ -133,6 +123,12 @@ ApplicationWindow { StackView { id: stackView anchors.fill: parent + // Implements back key navigation + focus: true + Keys.onReleased: if (event.key === Qt.Key_Back && stackView.depth > 1) { + stackView.pop(); + event.accepted = true; + } initialItem: Item { width: parent.width |