diff options
Diffstat (limited to 'tests/manual/qcursor/allcursors/mainwindow.cpp')
-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; |