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>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "groupitemaction.h"
|
||||
|
||||
#include "designermcumanager.h"
|
||||
#include "nodeabstractproperty.h"
|
||||
#include "nodelistproperty.h"
|
||||
|
||||
@@ -81,6 +82,10 @@ inline bool itemsAreGrouped(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())
|
||||
return itemsAreGrouped(selection);
|
||||
else
|
||||
|
Reference in New Issue
Block a user