Commit 597258c0 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.MetaInfo: Adding convincience function for testing



Change-Id: Ic9faddd21fdf80357b1360951a1cc054546866e9
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 7c5069c2
......@@ -86,6 +86,8 @@ public:
QList<NodeMetaInfo> superClasses() const;
NodeMetaInfo directSuperClass() const;
QList<TypeName> superClassNames() const;
bool defaultPropertyIsComponent() const;
TypeName typeName() const;
......
......@@ -1248,6 +1248,16 @@ NodeMetaInfo NodeMetaInfo::directSuperClass() const
return NodeMetaInfo();
}
QList<TypeName> NodeMetaInfo::superClassNames() const
{
QList<TypeName> list;
foreach (const Internal::TypeDescription &type, m_privateData->prototypes()) {
list.append(type.className);
}
return list;
}
bool NodeMetaInfo::defaultPropertyIsComponent() const
{
if (hasDefaultProperty())
......
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