summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-04-13 12:43:48 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-04-16 09:29:42 (GMT)
commit45c4ef4497b8fae5b441838c14d44d5c83263490 (patch)
treecd9616cd178e9abc07dfb9ada3b5bff23ba627cc
parente524de33ce765344908d61350b78178dc358432b (diff)
downloadQt-45c4ef4497b8fae5b441838c14d44d5c83263490.zip
Qt-45c4ef4497b8fae5b441838c14d44d5c83263490.tar.gz
Qt-45c4ef4497b8fae5b441838c14d44d5c83263490.tar.bz2
qdoc: Changed <ul> elements in TOC.
Each <ul> is now <ul class="leveli">, where i is 1..n. (cherry picked from commit 3d3bff79216a24625ac7e5aa33b40c5363a228fc)
-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 2dafd45..0c8209f 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -1484,10 +1484,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()]);
}
@@ -2043,7 +2045,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);
@@ -2053,8 +2062,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 {