Commit 2b8ab0af authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.FormEditor: Adding check to FormEditorItem::isContainer



An item is not considered a container if the default property is
a component.

Change-Id: I73453fb17d6c181cdd79cd6620307e5c30cac09d
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 494d16f3
......@@ -31,6 +31,7 @@
#include "formeditorscene.h"
#include <modelnode.h>
#include <nodemetainfo.h>
#include <QDebug>
......@@ -361,6 +362,11 @@ QList<FormEditorItem*> FormEditorItem::childFormEditorItems() const
bool FormEditorItem::isContainer() const
{
NodeMetaInfo nodeMetaInfo = qmlItemNode().modelNode().metaInfo();
if (nodeMetaInfo.isValid())
return !nodeMetaInfo.defaultPropertyIsComponent();
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment