diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/qdoc/main.cpp | 10 | ||||
-rw-r--r-- | src/qdoc/qdocdatabase.cpp | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp index 563915d49..96aeec1a5 100644 --- a/src/qdoc/main.cpp +++ b/src/qdoc/main.cpp @@ -377,10 +377,14 @@ static void processQdocconfFile(const QString &fileName) // Store the title of the index (landing) page NamespaceNode* root = qdb->primaryTreeRoot(); - if (root) + if (root) { + QString title = config.getString(CONFIG_NAVIGATION + + Config::dot + + CONFIG_LANDINGPAGE); root->tree()->setIndexTitle(config.getString(CONFIG_NAVIGATION - + Config::dot - + CONFIG_LANDINGPAGE)); + + Config::dot + + CONFIG_LANDINGTITLE, title)); + } QSet<QString> excludedDirs = QSet<QString>::fromList(config.getCanonicalPathList(CONFIG_EXCLUDEDIRS)); QSet<QString> excludedFiles = QSet<QString>::fromList(config.getCanonicalPathList(CONFIG_EXCLUDEFILES)); diff --git a/src/qdoc/qdocdatabase.cpp b/src/qdoc/qdocdatabase.cpp index 8a4b276e8..634c01a4b 100644 --- a/src/qdoc/qdocdatabase.cpp +++ b/src/qdoc/qdocdatabase.cpp @@ -1050,7 +1050,9 @@ void QDocDatabase::findAllClasses(Aggregate* node) } else if ((*c)->isExample()) { // use the module index title as key for the example map - examples_.insert((*c)->tree()->indexTitle(), *c); + QString title = (*c)->tree()->indexTitle(); + if (!examples_.contains(title, *c)) + examples_.insert(title, *c); } else if ((*c)->isAggregate()) { findAllClasses(static_cast<Aggregate*>(*c)); |