From 5234c7fcc09fa59d410ede16136804588e2cc4d2 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Wed, 12 Feb 2020 22:05:43 +0100 Subject: 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 --- src/qdoc/codeparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3