QmlDesigner: Fix default value of canBeContainer

Fixes: QDS-14785
Change-Id: Iee57493a600705a6c357376b822c48fd3addcb32
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Miikka Heikkinen
2025-02-20 15:25:11 +02:00
parent de623ff6fc
commit 193684b88e
2 changed files with 2 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ TypeAnnotationReader::ParserSate TypeAnnotationReader::readMetaInfoRootElement(c
{ {
if (name == typeElementName) { if (name == typeElementName) {
auto &annotation = m_typeAnnotations.emplace_back(m_sourceId, m_directorySourceId); auto &annotation = m_typeAnnotations.emplace_back(m_sourceId, m_directorySourceId);
annotation.traits.canBeContainer = FlagIs::True;
annotation.traits.canBeDroppedInFormEditor = FlagIs::True; annotation.traits.canBeDroppedInFormEditor = FlagIs::True;
annotation.traits.canBeDroppedInNavigator = FlagIs::True; annotation.traits.canBeDroppedInNavigator = FlagIs::True;
annotation.traits.isMovable = FlagIs::True; annotation.traits.isMovable = FlagIs::True;

View File

@@ -20,6 +20,7 @@ class TypeAnnotationReader : public testing::Test
protected: protected:
TypeAnnotationReader() TypeAnnotationReader()
{ {
traits.canBeContainer = FlagIs::True;
traits.canBeDroppedInFormEditor = FlagIs::True; traits.canBeDroppedInFormEditor = FlagIs::True;
traits.canBeDroppedInNavigator = FlagIs::True; traits.canBeDroppedInNavigator = FlagIs::True;
traits.isMovable = FlagIs::True; traits.isMovable = FlagIs::True;