summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/ditaxmlgenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-03-10 07:14:27 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-03-10 07:14:27 (GMT)
commitfcc8a1b6ff261f128969458146185c9ed9d5892b (patch)
tree75c88c96b3306862138df1040417ba0894edbb35 /tools/qdoc3/ditaxmlgenerator.cpp
parenta2b2961fb9050c26ef99ebadb642f4178185a31f (diff)
downloadQt-fcc8a1b6ff261f128969458146185c9ed9d5892b.zip
Qt-fcc8a1b6ff261f128969458146185c9ed9d5892b.tar.gz
Qt-fcc8a1b6ff261f128969458146185c9ed9d5892b.tar.bz2
qdoc: Added <component> element to contain the module name.
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index cc7b1da..6ea371c 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -5614,7 +5614,6 @@ DitaXmlGenerator::writeProlog(const InnerNode* inner, CodeMarker* marker)
xmlWriter().writeCharacters(category);
writeEndTag(); // <category>
if (vrm.size() > 0) {
- qDebug() << "VRM" << vrm;
writeStartTag(DT_prodinfo);
writeStartTag(DT_prodname);
xmlWriter().writeCharacters(projectDescription);
@@ -5629,6 +5628,12 @@ DitaXmlGenerator::writeProlog(const InnerNode* inner, CodeMarker* marker)
xmlWriter().writeAttribute("modification",vrm[2]);
writeEndTag(); // <vrm>
writeEndTag(); // <vrmlist>
+ QString component = inner->moduleName();
+ if (!component.isEmpty()) {
+ writeStartTag(DT_component);
+ xmlWriter().writeCharacters(component);
+ writeEndTag(); // <prodinfo>
+ }
writeEndTag(); // <prodinfo>
}
writeEndTag(); // <metadata>