diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-07-08 07:18:50 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-07-08 07:18:50 (GMT) |
commit | 28f84d2ed4000391f855140f57c359bc858d4799 (patch) | |
tree | 4ed825fdda04db499922f6643458e7a8dde3857c /tools | |
parent | 61ed7fb16caff96d2cc57d5f4ab7c10c8535e7a9 (diff) | |
download | Qt-28f84d2ed4000391f855140f57c359bc858d4799.zip Qt-28f84d2ed4000391f855140f57c359bc858d4799.tar.gz Qt-28f84d2ed4000391f855140f57c359bc858d4799.tar.bz2 |
qdoc: Fixed table of contents for namespace pages.
Task-number: QTBUG-11992
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 441cfc6..1e455dd 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -2034,7 +2034,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()) { |