summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-05-17 07:38:52 +0200
committerMontel Laurent <[email protected]>2016-05-17 07:38:52 +0200
commit84a17445a9059a773c005a8574f45008752e8a83 (patch)
treea73f497dc793a5ff18867cfd772d8e3b5ba8f97d
parent6917157495ece1445b2a1ea70046614c54d520f5 (diff)
Fix shortcut
-rw-r--r--webengineviewer/src/widgets/zoomactionmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/webengineviewer/src/widgets/zoomactionmenu.cpp b/webengineviewer/src/widgets/zoomactionmenu.cpp
index 9a25699..4996fe6 100644
--- a/webengineviewer/src/widgets/zoomactionmenu.cpp
+++ b/webengineviewer/src/widgets/zoomactionmenu.cpp
@@ -73,17 +73,17 @@ void ZoomActionMenu::createZoomActions()
d->mZoomInAction = new QAction(QIcon::fromTheme(QStringLiteral("zoom-in")), i18n("&Zoom In"), this);
d->mActionCollection->addAction(QStringLiteral("zoom_in"), d->mZoomInAction);
connect(d->mZoomInAction, &QAction::triggered, this, &ZoomActionMenu::slotZoomIn);
- d->mActionCollection->setDefaultShortcut(d->mZoomInAction, QKeySequence(Qt::CTRL | Qt::Key_Plus));
+ d->mActionCollection->setDefaultShortcut(d->mZoomInAction, QKeySequence(Qt::CTRL + Qt::Key_Plus));
d->mZoomOutAction = new QAction(QIcon::fromTheme(QStringLiteral("zoom-out")), i18n("Zoom &Out"), this);
d->mActionCollection->addAction(QStringLiteral("zoom_out"), d->mZoomOutAction);
connect(d->mZoomOutAction, &QAction::triggered, this, &ZoomActionMenu::slotZoomOut);
- d->mActionCollection->setDefaultShortcut(d->mZoomOutAction, QKeySequence(Qt::CTRL | Qt::Key_Minus));
+ d->mActionCollection->setDefaultShortcut(d->mZoomOutAction, QKeySequence(Qt::CTRL + Qt::Key_Minus));
d->mZoomResetAction = new QAction(i18n("Reset"), this);
d->mActionCollection->addAction(QStringLiteral("zoom_reset"), d->mZoomResetAction);
connect(d->mZoomResetAction, &QAction::triggered, this, &ZoomActionMenu::slotZoomReset);
- d->mActionCollection->setDefaultShortcut(d->mZoomResetAction, QKeySequence(Qt::CTRL | Qt::Key_0));
+ d->mActionCollection->setDefaultShortcut(d->mZoomResetAction, QKeySequence(Qt::CTRL + Qt::Key_0));
d->createMenu();
}