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>
bb10
Topi Reinio 2015-08-25 12:34:12 +02:00 committed by Topi Reiniö
parent a5f46bc647
commit 191b7237bf
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}