Commit f36a1b48 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Add ModelNode::isSubclassOf

Change-Id: Icd1b0fcb19a0e15279b68059efa6aa251ce806a0
Reviewed-by: default avatarTim Jenssen <>
parent f9389d62
......@@ -193,6 +193,7 @@ public:
NodeSourceType nodeSourceType() const;
bool isComponent() const;
bool isSubclassOf(const TypeName &typeName, int majorVersion = -1, int minorVersion = -1) const;
private: // functions
Internal::InternalNodePointer internalNode() const;
......@@ -1072,4 +1072,12 @@ bool ModelNode::isComponent() const
return false;
bool ModelNode::isSubclassOf(const TypeName &typeName, int majorVersion, int minorVersion) const
if (metaInfo().isValid())
return metaInfo().isSubclassOf(typeName, majorVersion, minorVersion);
return false;
Supports Markdown
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