summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-06-30 17:08:43 (GMT)
committerLiang Qi <liang.qi@nokia.com>2011-09-02 13:21:37 (GMT)
commit47cc8102def2e9b0c1dbc9ae4055fe595915e0e4 (patch)
tree806e0ea8586a00fc9534d1f00252e3184595061d /tools/qdoc3/node.cpp
parent4e0ec071d3d4ac6142ac7542f98b6dd9c827e6de (diff)
downloadQt-47cc8102def2e9b0c1dbc9ae4055fe595915e0e4.zip
Qt-47cc8102def2e9b0c1dbc9ae4055fe595915e0e4.tar.gz
Qt-47cc8102def2e9b0c1dbc9ae4055fe595915e0e4.tar.bz2
Modified \since command behavior slightly to handle project and version.
(The since argument can contain a project name and version, defaulting to the qdoc project if only a version number is specified.) Refactored common code into the Generator class. Fixed \sincelist HTML generation for tables containing only one item. (cherry picked from commit 6a2f18140bbc41207eb2f5e2323b699600d89606) Reapplied after bad v4.7.4 merge
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index 41de23e..709f03f 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -159,6 +159,16 @@ void Node::setLink(LinkType linkType, const QString &link, const QString &desc)
}
/*!
+ Sets the information about the project and version a node was introduced
+ in. The string is simplified, removing excess whitespace before being
+ stored.
+*/
+void Node::setSince(const QString &since)
+{
+ sinc = since.simplified();
+}
+
+/*!
Returns a string representing the access specifier.
*/
QString Node::accessString() const