From ab5d841e76d52cb06946e7ddab33509e7ba48292 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Fri, 16 Apr 2010 15:32:24 +0200 Subject: qdoc: Output TOC for more class ref pages. --- tools/qdoc3/htmlgenerator.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 6922ef8..a5dc7b7 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1473,7 +1473,7 @@ void HtmlGenerator::generateFakeNode(const FakeNode *fake, CodeMarker *marker) Don't generate a TOC for the home page. */ if (fake->name() != QString("index.html")) - generateTableOfContents(fake,marker); + generateTableOfContents(fake,marker,0); generateTitle(fullTitle, Text() << fake->subTitle(), @@ -2033,15 +2033,11 @@ void HtmlGenerator::generateTableOfContents(const Node *node, CodeMarker *marker, QList
* sections) { - if (!node->doc().hasTableOfContents()) { - if (node->subType() != Node::Module) - return; - } - QList toc = node->doc().tableOfContents(); - if (toc.isEmpty()) { - if (node->subType() != Node::Module) - return; - } + QList toc; + if (node->doc().hasTableOfContents()) + toc = node->doc().tableOfContents(); + if (toc.isEmpty() && !sections && (node->subType() != Node::Module)) + return; QStringList sectionNumber; int detailsBase = 0; -- cgit v0.12