forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user