diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-12-21 13:12:17 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-12-21 14:27:34 +0000 |
commit | dd7dd3571f21358ffe38d1f7a63424f0225aea42 (patch) | |
tree | 5e0867584614374af38cbef0612adad248bef390 /tests | |
parent | a75e7c4c1fd34abb9086fd0b3d5943e0c6987659 (diff) |
Add Quit (Ctrl+Q) shortcut to testbench
Change-Id: I0af8eb73cf099e5ca99001d842ee7381e0cc0ce9
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/testbench/main.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml index d2d05c2f..84c113ec 100644 --- a/tests/manual/testbench/main.qml +++ b/tests/manual/testbench/main.qml @@ -38,7 +38,7 @@ ** ****************************************************************************/ -import QtQuick 2.3 +import QtQuick 2.6 import QtQuick.Window 2.2 import QtQuick.Layouts 1.0 import Qt.labs.controls 1.0 @@ -56,6 +56,11 @@ ApplicationWindow { property int controlSpacing: 10 + Shortcut { + sequence: "Ctrl+Q" + onActivated: Qt.quit() + } + header: ToolBar { RowLayout { anchors.fill: parent |