diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-10-14 12:09:08 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-10-14 12:09:08 (GMT) |
commit | e7d0747e31fbf0226a7cb639ca52f984cdd8d3ea (patch) | |
tree | 7bcc69cacde79e9ad412c2631850dbaaf4c55b80 /tools | |
parent | d32706acebf37bd1e93e1c045cb46c7898ffed19 (diff) | |
download | Qt-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.cpp | 8 |
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> |