summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-06-15 12:54:37 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-06-15 12:54:37 (GMT)
commite9e93fe79d7451f05a714241f759c557a455de67 (patch)
treeed6f0969210892065d7ddd08edaa1055793e2eca /tools/qdoc3/node.cpp
parent36c538d034d5c7df1cbc8c92110c8d28638f699e (diff)
downloadQt-e9e93fe79d7451f05a714241f759c557a455de67.zip
Qt-e9e93fe79d7451f05a714241f759c557a455de67.tar.gz
Qt-e9e93fe79d7451f05a714241f759c557a455de67.tar.bz2
doc: Added more DITA output to the XML generator
Task-number: QTBUG-11391
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index 3c7e9dc..4664e9d 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -154,6 +154,41 @@ void Node::setLink(LinkType linkType, const QString &link, const QString &desc)
}
/*!
+ Returns a string representing the access specifier.
+ */
+QString Node::accessString() const
+{
+ switch (acc) {
+ case Protected:
+ return "protected";
+ case Private:
+ return "private";
+ case Public:
+ default:
+ break;
+ }
+ return "public";
+}
+
+
+/*!
+ Returns a string representing the access specifier.
+ */
+QString RelatedClass::accessString() const
+{
+ switch (access) {
+ case Node::Protected:
+ return "protected";
+ case Node::Private:
+ return "private";
+ case Node::Public:
+ default:
+ break;
+ }
+ return "public";
+}
+
+/*!
*/
Node::Status Node::inheritedStatus() const
{