summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2015-10-16 13:09:46 +0200
committerAlbert Astals Cid <albert.astals@canonical.com>2015-10-16 11:24:29 +0000
commit5afc431323454225363dae30e67a1cb909086bf9 (patch)
tree0c88cb31304cbe3dde6ff65008f33ab32dba59b3
parenta7297ed85bc58a1f242b49a643e3abbdc7cf7e24 (diff)
Use Node::name if Node::logicalModuleName is empty for qml modules
Change-Id: I55693a4f34f0a89ceb326b5eb4b229dd3f91c172 Reviewed-by: Martin Smith <martin.smith@digia.com>
-rw-r--r--src/tools/qdoc/qdocindexfiles.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/qdoc/qdocindexfiles.cpp b/src/tools/qdoc/qdocindexfiles.cpp
index 8961ff71ad..226280132f 100644
--- a/src/tools/qdoc/qdocindexfiles.cpp
+++ b/src/tools/qdoc/qdocindexfiles.cpp
@@ -900,6 +900,9 @@ bool QDocIndexFiles::generateIndexSection(QXmlStreamWriter& writer,
if (node->isQmlModule()) {
logicalModuleName = node->logicalModuleName();
logicalModuleVersion = node->logicalModuleVersion();
+ if (logicalModuleName.isEmpty()) {
+ logicalModuleName = node->name();
+ }
if (!logicalModuleName.isEmpty()) {
writer.writeAttribute("qml-module-name", logicalModuleName);
if (node->isQmlModule())