diff options
Diffstat (limited to 'src/plugins/modeleditor/actionhandler.cpp')
-rw-r--r-- | src/plugins/modeleditor/actionhandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp index 837914be32..638c184884 100644 --- a/src/plugins/modeleditor/actionhandler.cpp +++ b/src/plugins/modeleditor/actionhandler.cpp @@ -189,13 +189,14 @@ void ActionHandler::createActions() Utils::Icons::LINK_TOOLBAR.icon())->action(); d->synchronizeBrowserAction->setCheckable(true); - auto editPropertiesAction = new QAction(tr("Edit Element Properties"), Core::ICore::mainWindow()); + auto editPropertiesAction = new QAction(tr("Edit Element Properties"), + Core::ICore::dialogParent()); Core::Command *editPropertiesCommand = Core::ActionManager::registerAction( editPropertiesAction, Constants::SHORTCUT_MODEL_EDITOR_EDIT_PROPERTIES, d->context); editPropertiesCommand->setDefaultKeySequence(QKeySequence(tr("Shift+Return"))); connect(editPropertiesAction, &QAction::triggered, this, &ActionHandler::onEditProperties); - auto editItemAction = new QAction(tr("Edit Item on Diagram"), Core::ICore::mainWindow()); + auto editItemAction = new QAction(tr("Edit Item on Diagram"), Core::ICore::dialogParent()); Core::Command *editItemCommand = Core::ActionManager::registerAction( editItemAction, Constants::SHORTCUT_MODEL_EDITOR_EDIT_ITEM, d->context); editItemCommand->setDefaultKeySequence(QKeySequence(tr("Return"))); @@ -225,7 +226,7 @@ std::function<void()> invokeOnCurrentModelEditor(void (ModelEditor::*function)() }; } -Core::Command *ActionHandler::registerCommand(const Core::Id &id, void (ModelEditor::*function)(), +Core::Command *ActionHandler::registerCommand(const Utils::Id &id, void (ModelEditor::*function)(), const Core::Context &context, const QString &title, const QKeySequence &keySequence, const QIcon &icon) { |