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>
This commit is contained in:
Takumi ASAKI
2016-07-07 16:49:59 +09:00
committed by Jochen Becher
parent 40c5213fdd
commit 1ca0a21d4e

View File

@@ -192,10 +192,10 @@ void ActionHandler::createActions()
Constants::OPEN_PARENT_DIAGRAM, [this]() { openParentDiagram(); }, Core::Context(), true, Constants::OPEN_PARENT_DIAGRAM, [this]() { openParentDiagram(); }, Core::Context(), true,
tr("Open Parent Diagram"), QKeySequence(QStringLiteral("Ctrl+Shift+P")))->action(); tr("Open Parent Diagram"), QKeySequence(QStringLiteral("Ctrl+Shift+P")))->action();
d->openParentDiagramAction->setIcon(QIcon(QStringLiteral(":/modeleditor/up.png"))); d->openParentDiagramAction->setIcon(QIcon(QStringLiteral(":/modeleditor/up.png")));
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context()); registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), true, tr("Add Package"));
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context()); registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), true, tr("Add Component"));
registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context()); registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), true, tr("Add Class"));
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr, Core::Context()); 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()); auto editPropertiesAction = new QAction(tr("Edit Element Properties"), Core::ICore::mainWindow());
Core::Command *editPropertiesCommand = Core::ActionManager::registerAction( Core::Command *editPropertiesCommand = Core::ActionManager::registerAction(