aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-01-31 12:51:31 +0100
committerEike Ziller <eike.ziller@qt.io>2018-02-01 12:07:53 +0000
commitebc975e4a46dd4c8e4cf18229490033961da9a0a (patch)
treedb3a0a2a2930b870dec229b4c8cb0db48a7ab27c /src/plugins/modeleditor
parent2cf62f2b1a0268d50fdb2f91f7d69099944ba4e4 (diff)
ModelEditor: Remove unused methods
The zoom out and reset actions were even wrong. Change-Id: I718e024cc2483c47ac3046b22c2526746288b6db Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/modeleditor')
-rw-r--r--src/plugins/modeleditor/actionhandler.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp
index 7af2c6c5fbc..9ac340997eb 100644
--- a/src/plugins/modeleditor/actionhandler.cpp
+++ b/src/plugins/modeleditor/actionhandler.cpp
@@ -58,9 +58,6 @@ public:
QAction *synchronizeBrowserAction = nullptr;
QAction *exportDiagramAction = nullptr;
QAction *exportSelectedElementsAction = nullptr;
- QAction *zoomInAction = nullptr;
- QAction *zoomOutAction = nullptr;
- QAction *resetZoomAction = nullptr;
};
ActionHandler::ActionHandler(const Core::Context &context, QObject *parent)
@@ -135,21 +132,6 @@ QAction *ActionHandler::exportSelectedElementsAction() const
return d->exportSelectedElementsAction;
}
-QAction *ActionHandler::zoomInAction() const
-{
- return d->zoomInAction;
-}
-
-QAction *ActionHandler::zoomOutAction() const
-{
- return d->zoomOutAction;
-}
-
-QAction *ActionHandler::resetZoom() const
-{
- return d->resetZoomAction;
-}
-
void ActionHandler::createActions()
{
Core::ActionContainer *medit = Core::ActionManager::actionContainer(Core::Constants::M_EDIT);
@@ -194,19 +176,16 @@ void ActionHandler::createActions()
Constants::ZOOM_IN, [this]() { zoomIn(); }, d->context, true,
tr("Zoom In"), QKeySequence("Ctrl++"));
menuModelEditor->addAction(zoomInCommand);
- d->zoomInAction = zoomInCommand->action();
Core::Command *zoomOutCommand = registerCommand(
Constants::ZOOM_OUT, [this]() { zoomOut(); }, d->context, true,
tr("Zoom Out"), QKeySequence("Ctrl+-"));
menuModelEditor->addAction(zoomOutCommand);
- d->zoomOutAction = zoomOutCommand->action();
Core::Command *resetZoomCommand = registerCommand(
Constants::RESET_ZOOM, [this]() { resetZoom(); }, d->context, true,
tr("Reset Zoom"), QKeySequence("Ctrl+0"));
menuModelEditor->addAction(resetZoomCommand);
- d->zoomOutAction = resetZoomCommand->action();
d->openParentDiagramAction = registerCommand(
Constants::OPEN_PARENT_DIAGRAM, [this]() { openParentDiagram(); }, Core::Context(), true,