QmlDesigner: Deactivate layout shortcut for MCU

Change-Id: I80c247155aabae54b826e950e7c9a93ab75dfc47
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Henning Gruendl
2023-09-21 17:35:03 +02:00
committed by Henning Gründl
parent 3d1f5ba8d2
commit a4b1e1ccdc

View File

@@ -1810,29 +1810,31 @@ void DesignerActionManager::createDefaultDesignerActions()
&isStackedContainerAndIndexCanBeIncreased, &isStackedContainerAndIndexCanBeIncreased,
&isStackedContainer)); &isStackedContainer));
addDesignerAction(new ModelNodeAction( addDesignerAction(
layoutRowLayoutCommandId, new ModelNodeAction(layoutRowLayoutCommandId,
layoutRowLayoutDisplayName, layoutRowLayoutDisplayName,
Utils::Icon({{":/qmldesigner/icon/designeractions/images/row.png", Utils::Icon({{":/qmldesigner/icon/designeractions/images/row.png",
Utils::Theme::IconsBaseColor}}).icon(), Utils::Theme::IconsBaseColor}})
.icon(),
layoutRowLayoutToolTip, layoutRowLayoutToolTip,
layoutCategory, layoutCategory,
QKeySequence("Ctrl+u"), QKeySequence("Ctrl+u"),
2, 2,
&layoutRowLayout, &layoutRowLayout,
&selectionCanBeLayoutedAndQtQuickLayoutPossible)); &selectionCanBeLayoutedAndQtQuickLayoutPossibleAndNotMCU));
addDesignerAction(new ModelNodeAction( addDesignerAction(
layoutColumnLayoutCommandId, new ModelNodeAction(layoutColumnLayoutCommandId,
layoutColumnLayoutDisplayName, layoutColumnLayoutDisplayName,
Utils::Icon({{":/qmldesigner/icon/designeractions/images/column.png", Utils::Icon({{":/qmldesigner/icon/designeractions/images/column.png",
Utils::Theme::IconsBaseColor}}).icon(), Utils::Theme::IconsBaseColor}})
.icon(),
layoutColumnLayoutToolTip, layoutColumnLayoutToolTip,
layoutCategory, layoutCategory,
QKeySequence("Ctrl+l"), QKeySequence("Ctrl+l"),
3, 3,
&layoutColumnLayout, &layoutColumnLayout,
&selectionCanBeLayoutedAndQtQuickLayoutPossible)); &selectionCanBeLayoutedAndQtQuickLayoutPossibleAndNotMCU));
addDesignerAction(new ModelNodeAction( addDesignerAction(new ModelNodeAction(
layoutGridLayoutCommandId, layoutGridLayoutCommandId,