summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2015-08-25 12:34:12 +0200
committerTopi Reiniƶ <topi.reinio@digia.com>2015-08-26 09:46:08 +0000
commit191b7237bfd5c2e74c0a25a17390dbb67073cf38 (patch)
treec6a17d8cf0d1fd2256538badf936c34b9d479392 /src/tools/qdoc
parenta5f46bc64798a4f5a63c7507c9e74a21247a6f49 (diff)
qdoc: Use lowercase names for modules read from index files
The module names are used as keys in the map that defines the forest of module trees. A physical module name (lowercase) is used as the primary tree name, but modules read from index were using a name written to the index file (project name, typically CamelCase) as-is. This caused issues for resolving link commands that have a module name in the square bracket parameters. To ensure that such links work, convert module names read from index to lowercase, too. Change-Id: I698e01fd1df888e4a78c06a76ad72b5eb1a70892 Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/tools/qdoc')
-rw-r--r--src/tools/qdoc/qdocdatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp
index 97f1929fb4..5ca8e36ef9 100644
--- a/src/tools/qdoc/qdocdatabase.cpp
+++ b/src/tools/qdoc/qdocdatabase.cpp
@@ -276,7 +276,7 @@ const QVector<Tree*>& QDocForest::indexSearchOrder()
NamespaceNode* QDocForest::newIndexTree(const QString& module)
{
primaryTree_ = new Tree(module, qdb_);
- forest_.insert(module, primaryTree_);
+ forest_.insert(module.toLower(), primaryTree_);
return primaryTree_->root();
}