summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-01-17 10:50:34 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-01-17 15:13:02 +0000
commita87a500c7719726a20d3d3dddbf901f64ad7017c (patch)
tree98c52859604eb5d2effa39b6714357562b600566
parentb12b656588683b883287dc68e13506fb48d9edb9 (diff)
downloadqt-creator-a87a500c7719726a20d3d3dddbf901f64ad7017c.tar.gz
QmlDesigner: Remove Goto implementation from Design Studio
Task-number: QDS-5951 Change-Id: I5503f27508ec0e0f76506083baad3969730c651d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp b/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp
index f601ae3986..89fa1d39d1 100644
--- a/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp
+++ b/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp
@@ -1471,16 +1471,20 @@ void DesignerActionManager::createDefaultDesignerActions()
&singleSelection,
&singleSelection));
- addDesignerAction(new ModelNodeContextMenuAction(
- goToImplementationCommandId,
- goToImplementationDisplayName,
- {},
- rootCategory,
- QKeySequence(),
- 42,
- &goImplementation,
- &singleSelectedAndUiFile,
- &singleSelectedAndUiFile));
+ const bool standaloneMode
+ = Core::ICore::settings()->value(DesignerSettingsKey::STANDALONE_MODE).toBool();
+
+ if (!standaloneMode) {
+ addDesignerAction(new ModelNodeContextMenuAction(goToImplementationCommandId,
+ goToImplementationDisplayName,
+ {},
+ rootCategory,
+ QKeySequence(),
+ 42,
+ &goImplementation,
+ &singleSelectedAndUiFile,
+ &singleSelectedAndUiFile));
+ }
addDesignerAction(new ModelNodeContextMenuAction(
addSignalHandlerCommandId,