summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-07-16 00:57:01 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-07-16 00:57:01 (GMT)
commit17e7b024ba01aba0e525f7fd03b9c5c0ed34e7c8 (patch)
tree54d169f5970ae2ec8b4aab796cc75fbfb04f9ed4 /tools/qdoc3/node.cpp
parent062a504010534d5e899f042b27c8ace82b556426 (diff)
parent6e2c3e7306883cd4618742e37861e326e9c91895 (diff)
downloadQt-17e7b024ba01aba0e525f7fd03b9c5c0ed34e7c8.zip
Qt-17e7b024ba01aba0e525f7fd03b9c5c0ed34e7c8.tar.gz
Qt-17e7b024ba01aba0e525f7fd03b9c5c0ed34e7c8.tar.bz2
Merge remote branch 'origin/4.7' into oslo-staging-1
Conflicts: tools/qdoc3/htmlgenerator.cpp
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 da62e29..0ca4870 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.
*/