diff options
author | Liang Qi <liang.qi@qt.io> | 2020-12-03 13:41:05 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-04 18:29:40 +0000 |
commit | 6d5514ac7d846d7ed17a5ac62c2809f84532d444 (patch) | |
tree | 0ebfc789ff14c867fce8acc205f7b6d10fb6fc06 /tests | |
parent | 0f0f4eb1c8f4da92ae26d5887bf786ac3ab6b3d5 (diff) |
tests: add a shortcut to quit app in allcursors
Change-Id: I6b377cacfe05fc13c9f70e37247ed4da72f3f72e
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit c48cb3381027779a5d58b02878893d176a83479a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/qcursor/allcursors/mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/manual/qcursor/allcursors/mainwindow.cpp b/tests/manual/qcursor/allcursors/mainwindow.cpp index f2fa438330..ecd2c4d908 100644 --- a/tests/manual/qcursor/allcursors/mainwindow.cpp +++ b/tests/manual/qcursor/allcursors/mainwindow.cpp @@ -51,6 +51,9 @@ void MainWindow::keyPressEvent(QKeyEvent* event) { QPoint off(0, 0); switch (event->key()) { + case Qt::Key_Q: + qApp->quit(); + break; case Qt::Key_Up: off.setY(-4); break; |