diff options
author | Martin Smith <msmith@trolltech.com> | 2010-03-30 11:03:10 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-03-30 11:03:10 (GMT) |
commit | 2d9260e863ff2e3a5bb77d37b2b9b90072bce825 (patch) | |
tree | e64fcf9691356c462409980272e89751948f196e /tools/qdoc3/htmlgenerator.cpp | |
parent | dcb055cde3a8d31e52a2d2143f14ca8662859541 (diff) | |
download | Qt-2d9260e863ff2e3a5bb77d37b2b9b90072bce825.zip Qt-2d9260e863ff2e3a5bb77d37b2b9b90072bce825.tar.gz Qt-2d9260e863ff2e3a5bb77d37b2b9b90072bce825.tar.bz2 |
qdoc: Added <div> elements to some html output for class references.
Task: QTBUG-9504
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index cd3da3e..fb9fa95 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -696,7 +696,7 @@ int HtmlGenerator::generateAtom(const Atom *atom, QList<Section> sections; QList<Section>::ConstIterator s; for (int i=0; i<LastSinceType; ++i) - sections.append(Section(sinceTitle(i),QString(),QString())); + sections.append(Section(sinceTitle(i),QString(),QString(),QString())); NodeMultiMap::const_iterator n = nsmap.value().constBegin(); while (n != nsmap.value().constEnd()) { @@ -1356,8 +1356,10 @@ void HtmlGenerator::generateClassLikeNode(const InnerNode *inner, if (!inner->doc().isEmpty()) { out() << "<hr />\n" + << "<div class=\"descr\"/>\n" << "<h2>" << "Detailed Description" << "</h2>\n"; generateBody(inner, marker); + out() << "</div>\n"; generateAlsoList(inner, marker); } @@ -1365,6 +1367,8 @@ void HtmlGenerator::generateClassLikeNode(const InnerNode *inner, s = sections.begin(); while (s != sections.end()) { out() << "<hr />\n"; + if (!(*s).divClass.isEmpty()) + out() << "<div class=\"" << (*s).divClass << "\"/>\n"; out() << "<h2>" << protectEnc((*s).name) << "</h2>\n"; NodeList::ConstIterator m = (*s).members.begin(); @@ -1414,6 +1418,8 @@ void HtmlGenerator::generateClassLikeNode(const InnerNode *inner, } ++m; } + if (!(*s).divClass.isEmpty()) + out() << "</div>\n"; ++s; } generateFooter(inner); |