diff options
author | Martin Smith <martin.smith@digia.com> | 2015-03-11 14:58:54 +0100 |
---|---|---|
committer | Martin Smith <martin.smith@digia.com> | 2015-03-12 13:47:20 +0000 |
commit | 70f92f8cee3f76385a426f62f4ee7e79945da5f2 (patch) | |
tree | d8196246b0f473231c71994a9a80b527153d2264 /src/tools/qdoc/node.h | |
parent | 53207e820c894a1408aa77aa2237cc664eabc119 (diff) |
qdoc: Show correct method signatures for QML types
The return type was not printed, for \qmlmethod commands used
in QML files. The parameter types and default values weren't
being printed either. This update corrects those problems.
Change-Id: I68301fb2040c9dc5f5650e7dd3fee9c42197e3f7
Task-number: QTBUG-44064
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/node.h')
-rw-r--r-- | src/tools/qdoc/node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/qdoc/node.h b/src/tools/qdoc/node.h index 2c6e703103..654004e425 100644 --- a/src/tools/qdoc/node.h +++ b/src/tools/qdoc/node.h @@ -904,6 +904,7 @@ public: } int overloadNumber() const; const QList<Parameter>& parameters() const { return params; } + void clearParams() { params.clear(); } QStringList parameterNames() const; QString rawParameters(bool names = false, bool values = false) const; const FunctionNode* reimplementedFrom() const { return rf; } |