summaryrefslogtreecommitdiff
path: root/tools/qdoc3/ditaxmlgenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-04-15 12:22:02 +0200
committerMartin Smith <martin.smith@nokia.com>2011-04-15 12:22:02 +0200
commit75aea79ce599d5f62a1642a875774544f548c904 (patch)
treeaf125174e8c5ae087ebd6ff1d80bd53ff6ad5110 /tools/qdoc3/ditaxmlgenerator.cpp
parent6414bda3218790fb8a20a8ff5b3acf6fc6e206da (diff)
downloadqt4-tools-75aea79ce599d5f62a1642a875774544f548c904.tar.gz
qdoc: Completed task QTBUG-18790
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-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 e39424906a..5f44cd8363 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;