From 1ca0a21d4e634db698248a869e0600aa6e56c973 Mon Sep 17 00:00:00 2001 From: Takumi ASAKI Date: Thu, 7 Jul 2016 16:49:59 +0900 Subject: [PATCH] ModelEditor: Add labels to commands Some commands did not have labels for keyboard shortcuts setting. Change-Id: Ifed0c2acfca614cdd9f7dbc3256ad644f280e60f Reviewed-by: Jochen Becher Reviewed-by: Orgad Shaneh --- src/plugins/modeleditor/actionhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp index a2dabcfdcd8..e1a33f5ffbe 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(