forked from qt-creator/qt-creator
QmlDesigner: Disable GroupItem in Context Menu
Task-number: QDS-11988
Change-Id: Ifd547e12b165c7fe76c5818f8b7f4bde93ab1340
Reviewed-by: Aleksei German <aleksei.german@qt.io>
(cherry picked from commit 68123d07df
)
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
15eddd9cbc
commit
11f6b6fcc9
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "groupitemaction.h"
|
#include "groupitemaction.h"
|
||||||
|
|
||||||
|
#include "designermcumanager.h"
|
||||||
#include "nodeabstractproperty.h"
|
#include "nodeabstractproperty.h"
|
||||||
#include "nodelistproperty.h"
|
#include "nodelistproperty.h"
|
||||||
|
|
||||||
@@ -81,6 +82,10 @@ inline bool itemsAreGrouped(const SelectionContext &selection)
|
|||||||
|
|
||||||
bool groupingEnabled(const SelectionContext &selection)
|
bool groupingEnabled(const SelectionContext &selection)
|
||||||
{
|
{
|
||||||
|
//StudioComponents.GroupItem is not available in Qt for MCUs
|
||||||
|
if (DesignerMcuManager::instance().isMCUProject())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (selection.singleNodeIsSelected())
|
if (selection.singleNodeIsSelected())
|
||||||
return itemsAreGrouped(selection);
|
return itemsAreGrouped(selection);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user