summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-10-14 12:09:08 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-10-14 12:09:08 (GMT)
commite7d0747e31fbf0226a7cb639ca52f984cdd8d3ea (patch)
tree7bcc69cacde79e9ad412c2631850dbaaf4c55b80 /tools
parentd32706acebf37bd1e93e1c045cb46c7898ffed19 (diff)
downloadQt-e7d0747e31fbf0226a7cb639ca52f984cdd8d3ea.zip
Qt-e7d0747e31fbf0226a7cb639ca52f984cdd8d3ea.tar.gz
Qt-e7d0747e31fbf0226a7cb639ca52f984cdd8d3ea.tar.bz2
qdoc: Included file path as small-subtitle for example source files.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index 9715b9d..b9ceb0a 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -1986,11 +1986,17 @@ void DitaXmlGenerator::generateFakeNode(const FakeNode *fake, CodeMarker *marker
if (fake->doc().isEmpty()) {
if (fake->subType() == Node::File) {
- xmlWriter().writeStartElement("body");
Text text;
Quoter quoter;
+ xmlWriter().writeStartElement("body");
+ xmlWriter().writeStartElement("p");
+ xmlWriter().writeAttribute("outputclass", "small-subtitle");
+ text << fake->subTitle();
+ generateText(text, fake, marker);
+ xmlWriter().writeEndElement(); // </p>
Doc::quoteFromFile(fake->doc().location(), quoter, fake->name());
QString code = quoter.quoteTo(fake->location(), "", "");
+ text.clear();
text << Atom(Atom::Code, code);
generateText(text, fake, marker);
xmlWriter().writeEndElement(); // </body>