summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-06-28 07:46:09 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-06-28 07:46:09 (GMT)
commitace98f68883acde733e79ca849d379f5ee67a87b (patch)
tree9b1d120b4ebc490b7778ca76688eab1e1c141e83 /tools
parent1a72f98a15ef78004894dc6636b8a5d969d66fde (diff)
downloadQt-ace98f68883acde733e79ca849d379f5ee67a87b.zip
Qt-ace98f68883acde733e79ca849d379f5ee67a87b.tar.gz
Qt-ace98f68883acde733e79ca849d379f5ee67a87b.tar.bz2
doc: Added more DITA output to the XML generator
Added cxxVariableStorageClassSpecifierStatic. Task-number: QTBUG-11391
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index 0135983..d48a578 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -1,3 +1,4 @@
+
/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
@@ -5009,6 +5010,13 @@ void DitaXmlGenerator::writeDataMembers(const Section& s,
writer.writeAttribute("value",vn->accessString());
writer.writeEndElement(); // <cxxVariableAccessSpecifier>
+ if (vn->isStatic()) {
+ writer.writeStartElement(CXXVARIABLESTORAGECLASSSPECIFIERSTATIC);
+ writer.writeAttribute("name","static");
+ writer.writeAttribute("value","static");
+ writer.writeEndElement(); // <cxxVariableStorageClassSpecifierStatic>
+ }
+
writer.writeStartElement(CXXVARIABLEDECLAREDTYPE);
writer.writeCharacters(vn->leftType());
if (!vn->rightType().isEmpty())