aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/actionhandler.cpp
diff options
context:
space:
mode:
authorTakumi ASAKI <asaki@sra.co.jp>2016-07-07 16:49:59 +0900
committerJochen Becher <jochen_becher@gmx.de>2016-07-07 14:12:08 +0000
commit1ca0a21d4e634db698248a869e0600aa6e56c973 (patch)
treef10771821a0cb87b513925e63f422a1654d81f43 /src/plugins/modeleditor/actionhandler.cpp
parent40c5213fddaf80268536118afa40fe2bfc25ab20 (diff)
ModelEditor: Add labels to commands
Some commands did not have labels for keyboard shortcuts setting. Change-Id: Ifed0c2acfca614cdd9f7dbc3256ad644f280e60f Reviewed-by: Jochen Becher <jochen_becher@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/modeleditor/actionhandler.cpp')
-rw-r--r--src/plugins/modeleditor/actionhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp
index a2dabcfdcd..e1a33f5ffb 100644
--- a/src/plugins/modeleditor/actionhandler.cpp
+++ b/src/plugins/modeleditor/actionhandler.cpp
@@ -192,10 +192,10 @@ void ActionHandler::createActions()
Constants::OPEN_PARENT_DIAGRAM, [this]() { openParentDiagram(); }, Core::Context(), true,
tr("Open Parent Diagram"), QKeySequence(QStringLiteral("Ctrl+Shift+P")))->action();
d->openParentDiagramAction->setIcon(QIcon(QStringLiteral(":/modeleditor/up.png")));
- registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context());
- registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context());
- registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context());
- registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context());
+ registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), true, tr("Add Package"));
+ registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), true, tr("Add Component"));
+ registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), true, tr("Add Class"));
+ registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context(), true, tr("Add Canvas Diagram"));
auto editPropertiesAction = new QAction(tr("Edit Element Properties"), Core::ICore::mainWindow());
Core::Command *editPropertiesCommand = Core::ActionManager::registerAction(