summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-04-13 12:43:48 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-04-13 12:43:48 (GMT)
commit3d3bff79216a24625ac7e5aa33b40c5363a228fc (patch)
treef50a69c2f8f9fa3f3e414aa05dc569f79d115227 /tools
parent859389593c7b69b134c00c24a5eee64426cb4858 (diff)
downloadQt-3d3bff79216a24625ac7e5aa33b40c5363a228fc.zip
Qt-3d3bff79216a24625ac7e5aa33b40c5363a228fc.tar.gz
Qt-3d3bff79216a24625ac7e5aa33b40c5363a228fc.tar.bz2
qdoc: Changed <ul> elements in TOC.
Each <ul> is now <ul class="leveli">, where i is 1..n.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 4985f64..e6e2127 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -1489,10 +1489,12 @@ void HtmlGenerator::generateFakeNode(const FakeNode *fake, CodeMarker *marker)
generateStatus(fake, marker);
if (moduleNamespaceMap.contains(fake->name())) {
+ out() << "<a name=\"" << registerRef("namespaces") << "\"></a>\n";
out() << "<h2>Namespaces</h2>\n";
generateAnnotatedList(fake, marker, moduleNamespaceMap[fake->name()]);
}
if (moduleClassMap.contains(fake->name())) {
+ out() << "<a name=\"" << registerRef("classes") << "\"></a>\n";
out() << "<h2>Classes</h2>\n";
generateAnnotatedList(fake, marker, moduleClassMap[fake->name()]);
}
@@ -2045,7 +2047,14 @@ void HtmlGenerator::generateTableOfContents(const Node *node, CodeMarker *marker
inLink = true;
out() << "<div class=\"toc\">\n";
-
+#if 0
+ if (moduleNamespaceMap.contains(fake->name())) {
+ out() << "<a name=\"" << registerRef("namespaces") << "\"></a>\n";
+ }
+ if (moduleClassMap.contains(fake->name())) {
+ out() << "<a name=\"" << registerRef("classes") << "\"></a>\n";
+ }
+#endif
for (int i = 0; i < toc.size(); ++i) {
Atom *atom = toc.at(i);
@@ -2055,8 +2064,8 @@ void HtmlGenerator::generateTableOfContents(const Node *node, CodeMarker *marker
if (sectionNumber.size() < nextLevel) {
do {
- out() << "<ul>\n";
sectionNumber.append("1");
+ out() << "<ul class=\"level" << sectionNumber.size() << "\">\n";
} while (sectionNumber.size() < nextLevel);
}
else {