diff options
| author | Martin Smith <[email protected]> | 2015-03-11 14:58:54 +0100 |
|---|---|---|
| committer | Martin Smith <[email protected]> | 2015-03-12 13:47:20 +0000 |
| commit | 70f92f8cee3f76385a426f62f4ee7e79945da5f2 (patch) | |
| tree | d8196246b0f473231c71994a9a80b527153d2264 /src/tools/qdoc/codechunk.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 <[email protected]>
Reviewed-by: Topi Reiniƶ <[email protected]>
Diffstat (limited to 'src/tools/qdoc/codechunk.h')
| -rw-r--r-- | src/tools/qdoc/codechunk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/qdoc/codechunk.h b/src/tools/qdoc/codechunk.h index ed898bcdc7a..259012df905 100644 --- a/src/tools/qdoc/codechunk.h +++ b/src/tools/qdoc/codechunk.h @@ -76,6 +76,7 @@ public: void appendHotspot(); bool isEmpty() const { return s.isEmpty(); } + void clear() { s.clear(); } QString toString() const; QStringList toPath() const; QString left() const { return s.left(hotspot == -1 ? s.length() : hotspot); } |
