summaryrefslogtreecommitdiffstats
path: root/tests/manual/qcursor/allcursors
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2020-12-03 13:41:05 +0100
committerLiang Qi <liang.qi@qt.io>2020-12-04 16:20:09 +0100
commitc48cb3381027779a5d58b02878893d176a83479a (patch)
tree3e3c7c96b6cb7a3f6cc6e59c764aee298006dca2 /tests/manual/qcursor/allcursors
parent5bad80173f58dc25d627908788b23c9d4bbcea89 (diff)
tests: add a shortcut to quit app in allcursors
Pick-to: 6.0 5.15 Change-Id: I6b377cacfe05fc13c9f70e37247ed4da72f3f72e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/qcursor/allcursors')
-rw-r--r--tests/manual/qcursor/allcursors/mainwindow.cpp3
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;