summaryrefslogtreecommitdiffstats
path: root/src/assistant/assistant/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/assistant/mainwindow.cpp')
-rw-r--r--src/assistant/assistant/mainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assistant/assistant/mainwindow.cpp b/src/assistant/assistant/mainwindow.cpp
index 94d9b6b65..b4492b6bf 100644
--- a/src/assistant/assistant/mainwindow.cpp
+++ b/src/assistant/assistant/mainwindow.cpp
@@ -610,12 +610,12 @@ void MainWindow::setupActions()
tmp = menu->addAction(tr("Next Page"),
openPages, &OpenPagesManager::nextPage);
tmp->setShortcuts(QList<QKeySequence>() << QKeySequence(tr("Ctrl+Alt+Right"))
- << QKeySequence(Qt::CTRL + Qt::Key_PageDown));
+ << QKeySequence(Qt::CTRL | Qt::Key_PageDown));
tmp = menu->addAction(tr("Previous Page"),
openPages, &OpenPagesManager::previousPage);
tmp->setShortcuts(QList<QKeySequence>() << QKeySequence(tr("Ctrl+Alt+Left"))
- << QKeySequence(Qt::CTRL + Qt::Key_PageUp));
+ << QKeySequence(Qt::CTRL | Qt::Key_PageUp));
const Qt::Modifier modifier =
#ifdef Q_OS_MAC
@@ -624,10 +624,10 @@ void MainWindow::setupActions()
Qt::CTRL;
#endif
- QShortcut *sct = new QShortcut(QKeySequence(modifier + Qt::Key_Tab), this);
+ QShortcut *sct = new QShortcut(QKeySequence(modifier | Qt::Key_Tab), this);
connect(sct, &QShortcut::activated,
openPages, &OpenPagesManager::nextPageWithSwitcher);
- sct = new QShortcut(QKeySequence(modifier + Qt::SHIFT + Qt::Key_Tab), this);
+ sct = new QShortcut(QKeySequence(modifier | Qt::SHIFT | Qt::Key_Tab), this);
connect(sct, &QShortcut::activated,
openPages, &OpenPagesManager::previousPageWithSwitcher);