summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/node.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@digia.com>2015-03-24 11:57:58 +0100
committerMartin Smith <martin.smith@digia.com>2015-03-27 13:55:56 +0000
commit696a18b063a890c4425121a6011d6fd5ba1c3f00 (patch)
tree65637a14a9dc2e0b8c60594aa69a715960880c60 /src/tools/qdoc/node.cpp
parent6a5e2f69a898b0fca3ec75caeddac4a69803269f (diff)
qdoc: No internal qmlabstract types in the "inherited by" list
This update ensures that there are no internal QML types in a QML type's "inherited by" list. It also fixes a bug that caused the "inherited by" lists to be empty when running qdoc in the single-exec mode. Change-Id: Iee8b9dbcd56a09b7a49ec8a703b5d861f0b1f0ec Task-number: QTBUG-44004 Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/tools/qdoc/node.cpp')
-rw-r--r--src/tools/qdoc/node.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/qdoc/node.cpp b/src/tools/qdoc/node.cpp
index 92a7c7b1df6..8e094f38c48 100644
--- a/src/tools/qdoc/node.cpp
+++ b/src/tools/qdoc/node.cpp
@@ -2124,9 +2124,10 @@ void QmlTypeNode::terminate()
*/
void QmlTypeNode::addInheritedBy(const QString& base, Node* sub)
{
- if (inheritedBy.constFind(base,sub) == inheritedBy.constEnd()) {
+ if (sub->isInternal())
+ return;
+ if (inheritedBy.constFind(base,sub) == inheritedBy.constEnd())
inheritedBy.insert(base,sub);
- }
}
/*!