summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-04-16 13:32:24 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-04-16 13:32:24 (GMT)
commitab5d841e76d52cb06946e7ddab33509e7ba48292 (patch)
tree6d3d110208991208056c3930a6f92efe5e11a5b8
parent048e0ba0be9c6aec608706e15eda040f7219c420 (diff)
downloadQt-ab5d841e76d52cb06946e7ddab33509e7ba48292.zip
Qt-ab5d841e76d52cb06946e7ddab33509e7ba48292.tar.gz
Qt-ab5d841e76d52cb06946e7ddab33509e7ba48292.tar.bz2
qdoc: Output TOC for more class ref pages.
-rw-r--r--tools/qdoc3/htmlgenerator.cpp16
1 files 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<Section>* sections)
{
- if (!node->doc().hasTableOfContents()) {
- if (node->subType() != Node::Module)
- return;
- }
- QList<Atom *> toc = node->doc().tableOfContents();
- if (toc.isEmpty()) {
- if (node->subType() != Node::Module)
- return;
- }
+ QList<Atom*> toc;
+ if (node->doc().hasTableOfContents())
+ toc = node->doc().tableOfContents();
+ if (toc.isEmpty() && !sections && (node->subType() != Node::Module))
+ return;
QStringList sectionNumber;
int detailsBase = 0;