summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-02-12 22:05:43 +0100
committerTopi Reinio <topi.reinio@qt.io>2020-02-21 10:44:43 +0100
commit5234c7fcc09fa59d410ede16136804588e2cc4d2 (patch)
tree75f9595d472b6e7a7e949a92910c0a661a5e8e4d
parent37a6641ba543ec5bd6d11bde9a2a71f58a32c295 (diff)
downloadqttools-5234c7fcc09fa59d410ede16136804588e2cc4d2.tar.gz
qdoc: Fix behavior with missing \inmodule command
QDoc warns about a missing \inmodule command and tells us that it has selected a default (project) name for the module, but this had no effect because we never added the node to the module. Automatically adding the node to the module won't eliminate the warnings, but ensures that a \module page whose name matches the default one is populated with the classes/namespaces as expected. Change-Id: Ib6a949cc2763c254d379ff99b08c60812f45e607 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/qdoc/codeparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/codeparser.cpp b/src/qdoc/codeparser.cpp
index 1bf31b800..db2d0df97 100644
--- a/src/qdoc/codeparser.cpp
+++ b/src/qdoc/codeparser.cpp
@@ -269,7 +269,7 @@ bool CodeParser::isParsingQdoc() const
void CodeParser::checkModuleInclusion(Node *n)
{
if (n->physicalModuleName().isEmpty()) {
- n->setPhysicalModuleName(Generator::defaultModuleName());
+ qdb_->addToModule(Generator::defaultModuleName(), n);
QString word;
switch (n->nodeType()) {
case Node::Class: