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:37 +0000 |
commit | fc794d7622e11a8538d146f4e64dbce9f6287cd6 (patch) | |
tree | e8b5312a5264dbc9af50bd23e3c5ae174f71c76c /tests | |
parent | 2784e72455dda2b3d88db7bf7336c45038764d3d (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; |