diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-04-15 12:22:02 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-04-15 12:22:02 +0200 |
commit | 75aea79ce599d5f62a1642a875774544f548c904 (patch) | |
tree | af125174e8c5ae087ebd6ff1d80bd53ff6ad5110 /tools/qdoc3/ditaxmlgenerator.cpp | |
parent | 6414bda3218790fb8a20a8ff5b3acf6fc6e206da (diff) | |
download | qt4-tools-75aea79ce599d5f62a1642a875774544f548c904.tar.gz |
qdoc: Completed task QTBUG-18790
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/ditaxmlgenerator.cpp | 2 |
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; |