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}})
layoutRowLayoutToolTip, .icon(),
layoutCategory, layoutRowLayoutToolTip,
QKeySequence("Ctrl+u"), layoutCategory,
2, QKeySequence("Ctrl+u"),
&layoutRowLayout, 2,
&selectionCanBeLayoutedAndQtQuickLayoutPossible)); &layoutRowLayout,
&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}})
layoutColumnLayoutToolTip, .icon(),
layoutCategory, layoutColumnLayoutToolTip,
QKeySequence("Ctrl+l"), layoutCategory,
3, QKeySequence("Ctrl+l"),
&layoutColumnLayout, 3,
&selectionCanBeLayoutedAndQtQuickLayoutPossible)); &layoutColumnLayout,
&selectionCanBeLayoutedAndQtQuickLayoutPossibleAndNotMCU));
addDesignerAction(new ModelNodeAction( addDesignerAction(new ModelNodeAction(
layoutGridLayoutCommandId, layoutGridLayoutCommandId,