diff options
author | David Boddie <david.boddie@nokia.com> | 2011-06-30 17:08:43 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-06-30 17:08:43 (GMT) |
commit | 6a2f18140bbc41207eb2f5e2323b699600d89606 (patch) | |
tree | 0833750f081408a6736d801efc3b0ecda1550f20 /tools/qdoc3/node.cpp | |
parent | 9ed61311bce15b8f1bb4b30ee9133f1a2355f41d (diff) | |
download | Qt-6a2f18140bbc41207eb2f5e2323b699600d89606.zip Qt-6a2f18140bbc41207eb2f5e2323b699600d89606.tar.gz Qt-6a2f18140bbc41207eb2f5e2323b699600d89606.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.
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r-- | tools/qdoc3/node.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp index 683c210..87bbd93 100644 --- a/tools/qdoc3/node.cpp +++ b/tools/qdoc3/node.cpp @@ -157,6 +157,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 |