summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Qi <[email protected]>2020-12-03 13:41:05 +0100
committerLiang Qi <[email protected]>2020-12-04 16:20:09 +0100
commitc48cb3381027779a5d58b02878893d176a83479a (patch)
tree3e3c7c96b6cb7a3f6cc6e59c764aee298006dca2
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ø <[email protected]>
-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 f2fa438330b..ecd2c4d9089 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;