summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-07-08 07:18:50 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-07-16 07:26:40 (GMT)
commit6776acfcc18132a2b084aa6bbb5515620a63b6a8 (patch)
tree052690ccdb2480dcf27eb78eff5a3634e571eb54 /tools/qdoc3
parent9fd83d455fa250d9a7901bd8d23a93abdc1cb283 (diff)
downloadQt-6776acfcc18132a2b084aa6bbb5515620a63b6a8.zip
Qt-6776acfcc18132a2b084aa6bbb5515620a63b6a8.tar.gz
Qt-6776acfcc18132a2b084aa6bbb5515620a63b6a8.tar.bz2
qdoc: Fixed table of contents for namespace pages.
Task-number: QTBUG-11992 (cherry picked from commit 28f84d2ed4000391f855140f57c359bc858d4799)
Diffstat (limited to 'tools/qdoc3')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 7acacff..813bb4b 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -2077,7 +2077,8 @@ void HtmlGenerator::generateTableOfContents(const Node *node,
}
}
}
- else if (sections && (node->type() == Node::Class)) {
+ else if (sections && ((node->type() == Node::Class) ||
+ (node->type() == Node::Namespace))) {
QList<Section>::ConstIterator s = sections->begin();
while (s != sections->end()) {
if (!s->members.isEmpty() || !s->reimpMembers.isEmpty()) {