diff options
Diffstat (limited to 'src/qdoc/node.cpp')
-rw-r--r-- | src/qdoc/node.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/qdoc/node.cpp b/src/qdoc/node.cpp index e2ed08032..7e3b2d96a 100644 --- a/src/qdoc/node.cpp +++ b/src/qdoc/node.cpp @@ -2669,6 +2669,20 @@ QString QmlTypeNode::logicalModuleIdentifier() const } /*! + Returns true if this QML type inherits \a type. + */ +bool QmlTypeNode::inherits(Aggregate* type) +{ + QmlTypeNode* qtn = qmlBaseNode(); + while (qtn != 0) { + if (qtn == type) + return true; + qtn = qtn->qmlBaseNode(); + } + return false; +} + +/*! Constructs a Qml basic type node. The new node has the given \a parent and \a name. */ |