aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/actionhandler.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-01-31 12:41:04 +0100
committerEike Ziller <eike.ziller@qt.io>2018-02-05 10:42:25 +0000
commite1d2d35c20163083266e2e450ef54bfb15d2b47d (patch)
tree626c4c17f8dd1868ff01244b2475d94d6d29f937 /src/plugins/modeleditor/actionhandler.cpp
parentd110b2f4db5bd817a5905924dcac0caf7b9cae4c (diff)
Unify zooming actions of image viewer and model editor
Change-Id: I5761ab579beda5b2cd0b725869ed216cb97e900c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/modeleditor/actionhandler.cpp')
-rw-r--r--src/plugins/modeleditor/actionhandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp
index 157e3f2751..57a9602462 100644
--- a/src/plugins/modeleditor/actionhandler.cpp
+++ b/src/plugins/modeleditor/actionhandler.cpp
@@ -173,18 +173,15 @@ void ActionHandler::createActions()
menuModelEditor->addSeparator(d->context);
Core::Command *zoomInCommand = registerCommand(
- Constants::ZOOM_IN, &ModelEditor::zoomIn, d->context, true,
- tr("Zoom In"), QKeySequence("Ctrl++"));
+ Core::Constants::ZOOM_IN, &ModelEditor::zoomIn, d->context);
menuModelEditor->addAction(zoomInCommand);
Core::Command *zoomOutCommand = registerCommand(
- Constants::ZOOM_OUT, &ModelEditor::zoomOut, d->context, true,
- tr("Zoom Out"), QKeySequence("Ctrl+-"));
+ Core::Constants::ZOOM_OUT, &ModelEditor::zoomOut, d->context);
menuModelEditor->addAction(zoomOutCommand);
Core::Command *resetZoomCommand = registerCommand(
- Constants::RESET_ZOOM, &ModelEditor::resetZoom, d->context, true,
- tr("Reset Zoom"), QKeySequence("Ctrl+0"));
+ Core::Constants::ZOOM_RESET, &ModelEditor::resetZoom, d->context);
menuModelEditor->addAction(resetZoomCommand);
d->openParentDiagramAction = registerCommand(