summaryrefslogtreecommitdiffstats
path: root/tests/manual/qscreen/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qscreen/main.cpp')
-rw-r--r--tests/manual/qscreen/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/qscreen/main.cpp b/tests/manual/qscreen/main.cpp
index e6f0dc9fd7..fced21f307 100644
--- a/tests/manual/qscreen/main.cpp
+++ b/tests/manual/qscreen/main.cpp
@@ -171,15 +171,15 @@ ScreenWatcherMainWindow::ScreenWatcherMainWindow(QScreen *screen)
QMenu *fileMenu = menuBar()->addMenu(QLatin1String("&File"));
QAction *a = fileMenu->addAction(QLatin1String("Close"));
- a->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_W));
+ a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_W));
connect(a, SIGNAL(triggered()), this, SLOT(close()));
a = fileMenu->addAction(QLatin1String("Quit"));
- a->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
+ a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));
connect(a, SIGNAL(triggered()), qApp, SLOT(quit()));
QMenu *toolsMenu = menuBar()->addMenu(QLatin1String("&Tools"));
a = toolsMenu->addAction(QLatin1String("Mouse Monitor"));
- a->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_M));
+ a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_M));
connect(a, &QAction::triggered, this, &ScreenWatcherMainWindow::startMouseMonitor);
}