summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-07-14 14:33:49 (GMT)
committerLeandro Melo <leandro.melo@nokia.com>2010-07-14 14:33:49 (GMT)
commit21fbfdb2acdc368c047d14004373d2d0baa6c0b1 (patch)
tree162beaf366cf8815166029d05c73e30451a1c33d /tools/qdoc3/node.cpp
parent6dc2f2a86a95977202ccd08fe85b0cb45c1f95b8 (diff)
downloadQt-21fbfdb2acdc368c047d14004373d2d0baa6c0b1.zip
Qt-21fbfdb2acdc368c047d14004373d2d0baa6c0b1.tar.gz
Qt-21fbfdb2acdc368c047d14004373d2d0baa6c0b1.tar.bz2
Docs: HTML comments marks so Creator can extract data efficiently.
Reviewed-by: Martin Smith
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index b077074..af129ed 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -1246,6 +1246,24 @@ QStringList FunctionNode::parameterNames() const
}
/*!
+ Returns a raw list of parameters. If \a names is true, the
+ names are included. If \a values is true, the default values
+ are included, if any are present.
+ */
+QString FunctionNode::rawParameters(bool names, bool values) const
+{
+ QString raw;
+ foreach (const Parameter &parameter, parameters()) {
+ raw += parameter.leftType() + parameter.rightType();
+ if (names)
+ raw += parameter.name();
+ if (values)
+ raw += parameter.defaultValue();
+ }
+ return raw;
+}
+
+/*!
Returns the list of reconstructed parameters. If \a values
is true, the default values are included, if any are present.
*/