summaryrefslogtreecommitdiff
path: root/src/qdoc/node.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2019-10-10 13:07:04 +0200
committerPaul Wicking <paul.wicking@qt.io>2019-10-10 14:50:04 +0200
commit6da2067cac4031d9df7ed72c24e29748f5351174 (patch)
treed486b6f719924e88b4ed38db84f883eb1ba296f4 /src/qdoc/node.cpp
parent505a8c9dbcb6c8c668d4ad2db304f307022a3b85 (diff)
downloadqttools-6da2067cac4031d9df7ed72c24e29748f5351174.tar.gz
qdoc: Do not add class to map if isDontDocument() is true
This update ensures that if a class node returns true for isDontDocument(), it is not included in the map used for generating the all classes list. This also applies to QML types. Task-number: QTBUG-78940 Change-Id: I020cb0dd2f16187d5f6c75b400778b1518d7e05a Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/node.cpp')
-rw-r--r--src/qdoc/node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/node.cpp b/src/qdoc/node.cpp
index ea6e82536..c840c748d 100644
--- a/src/qdoc/node.cpp
+++ b/src/qdoc/node.cpp
@@ -3386,7 +3386,7 @@ void Aggregate::findAllObsoleteThings()
void Aggregate::findAllClasses()
{
foreach (Node *n, children_) {
- if (!n->isPrivate() && !n->isInternal() &&
+ if (!n->isPrivate() && !n->isInternal() && !n->isDontDocument() &&
n->tree()->camelCaseModuleName() != QString("QDoc")) {
if (n->isClassNode()) {
QDocDatabase::cppClasses().insert(n->qualifyCppName().toLower(), n);