summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-04-15 10:22:02 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-04-15 10:22:02 (GMT)
commit75aea79ce599d5f62a1642a875774544f548c904 (patch)
treeaf125174e8c5ae087ebd6ff1d80bd53ff6ad5110 /tools
parent6414bda3218790fb8a20a8ff5b3acf6fc6e206da (diff)
downloadQt-75aea79ce599d5f62a1642a875774544f548c904.zip
Qt-75aea79ce599d5f62a1642a875774544f548c904.tar.gz
Qt-75aea79ce599d5f62a1642a875774544f548c904.tar.bz2
qdoc: Completed task QTBUG-18790
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index e394249..5f44cd8 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -769,6 +769,7 @@ int DitaXmlGenerator::generateAtom(const Atom *atom,
case Atom::Code:
{
writeStartTag(DT_codeblock);
+ xmlWriter().writeAttribute("outputclass","cpp");
QString chars = trimmedTrailing(atom->string());
writeText(chars, marker, relative);
writeEndTag(); // </codeblock>
@@ -776,6 +777,7 @@ int DitaXmlGenerator::generateAtom(const Atom *atom,
break;
case Atom::Qml:
writeStartTag(DT_codeblock);
+ xmlWriter().writeAttribute("outputclass","qml");
writeText(trimmedTrailing(atom->string()), marker, relative);
writeEndTag(); // </codeblock>
break;