diff options
author | Martin Smith <martin.smith@digia.com> | 2015-04-14 11:27:59 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@digia.com> | 2015-04-16 09:36:39 +0000 |
commit | aea74dcaee2d6930e4d69cbda83088703b45816e (patch) | |
tree | b7b6854656861cc758b4a573ea1ad8bcddf9bafd /src/tools/qdoc/cppcodeparser.cpp | |
parent | 528279febe74a5e995589d9c5eeb6c533cc2fe7c (diff) |
qdoc: Properly document "private" signals
When a signal declaration is marked with QSignalPrivate,
This note is included in its documentation: "Note: This
is a private signal. It must not be emitted by the user."
For Notifier signals, [see note] is appended to the signature line,
and the Note is printed below the list.
Change-Id: Ie792894ace56cda47fd9a45af9c732f408ac45f6
Task-number: QTBUG-45535
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/tools/qdoc/cppcodeparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp index 4fbe20b09e..f12fb70227 100644 --- a/src/tools/qdoc/cppcodeparser.cpp +++ b/src/tools/qdoc/cppcodeparser.cpp @@ -1329,6 +1329,11 @@ bool CppCodeParser::matchParameter(FunctionNode *func) QString name; CodeChunk defaultValue; + if (match(Tok_QPrivateSignal)) { + func->setPrivateSignal(); + return true; + } + if (!matchDataType(&dataType, &name)) { return false; } |