summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-03-24 11:37:09 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-03-24 11:37:09 (GMT)
commit8e07e0fb803fe1c3e48083a64e7c93a910c1c029 (patch)
tree96e0193f4b72beef426a81a5be00b0795afe15a2 /tools
parent7cdc69ee359b41c7e8986dc588b5acf966df2a81 (diff)
downloadQt-8e07e0fb803fe1c3e48083a64e7c93a910c1c029.zip
Qt-8e07e0fb803fe1c3e48083a64e7c93a910c1c029.tar.gz
Qt-8e07e0fb803fe1c3e48083a64e7c93a910c1c029.tar.bz2
qdoc: Added <copyright>, <copyryear>, and <copyrholder>.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index fed3af3..5a66007 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -5618,7 +5618,7 @@ QString DitaXmlGenerator::getMetadataElement(const InnerNode* inner, DitaXmlGene
function writes one or more of these elements:
\list
- \o <audience>
+ \o <audience> *
\o <author> *
\o <brand>
\o <category> *
@@ -5658,7 +5658,23 @@ DitaXmlGenerator::writeProlog(const InnerNode* inner, CodeMarker* marker)
writeStartTag(DT_prolog);
writeMetadataElement(inner,DT_author);
writeMetadataElement(inner,DT_publisher);
- QString s = getMetadataElement(inner,DT_permissions);
+ QString s = getMetadataElement(inner,DT_copyryear);
+ if (s.isEmpty()) {
+ s = "2011"; // zzz
+ }
+ QString t = getMetadataElement(inner,DT_copyrholder);
+ if (t.isEmpty()) {
+ t = "Nokia"; // zzz
+ }
+ writeStartTag(DT_copyright);
+ writeStartTag(DT_copyryear);
+ xmlWriter().writeAttribute("year",s);
+ writeEndTag(); // </copyryear>
+ writeStartTag(DT_copyrholder);
+ xmlWriter().writeCharacters(t);
+ writeEndTag(); // </copyrholder>
+ writeEndTag(); // </copyright>
+ s = getMetadataElement(inner,DT_permissions);
if (s.isEmpty())
s = "all";
writeStartTag(DT_permissions);
@@ -5677,7 +5693,7 @@ DitaXmlGenerator::writeProlog(const InnerNode* inner, CodeMarker* marker)
if (inner->type() == Node::Class)
category = "Class reference";
else if (inner->type() == Node::Namespace)
- category = "C++ Namespace";
+ category = "Namespace";
else if (inner->type() == Node::Fake) {
if (inner->subType() == Node::QmlClass)
category = "QML Element Reference";