diff options
-rw-r--r-- | src/qdoc/node.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/qdoc/node.cpp b/src/qdoc/node.cpp index c1388f726..6618a7e6d 100644 --- a/src/qdoc/node.cpp +++ b/src/qdoc/node.cpp @@ -1875,15 +1875,11 @@ FunctionNode* ClassNode::findOverriddenFunction(const FunctionNode* fn) */ bool ClassNode::docMustBeGenerated() const { - if (isInternal() || isPrivate() || isDontDocument() || - declLocation().fileName().endsWith(QLatin1String("_p.h"))) + if (!hasDoc() || isPrivate() || isInternal() || isDontDocument()) return false; - if (count() == 0) - return false; - if (name().contains(QLatin1String("Private"))) - return false; - if (functionCount_ == 0) + if (declLocation().fileName().endsWith(QLatin1String("_p.h"))) return false; + return true; } |