Skip to content

Commit

Permalink
tests: add a shortcut to quit app in allcursors
Browse files Browse the repository at this point in the history
Pick-to: 6.0 5.15
Change-Id: I6b377cacfe05fc13c9f70e37247ed4da72f3f72e
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
liangqi committed Dec 4, 2020
1 parent 5bad801 commit c48cb33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/manual/qcursor/allcursors/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c48cb33

Please sign in to comment.