summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2012-04-03 10:50:43 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-03 12:45:46 +0200
commit618e825f7b569681a1114a9f5fad34ecb7e9a142 (patch)
tree82935e4d8fa0b0c14f51c241b04664666730c585 /src/tools
parentccdc98cfd8b5001c85b9d74d8f47b93801a15ffc (diff)
QDoc documentation: modified the instructions for documenting signals.
-we document signals, not signal handlers. Change-Id: I7d52223a393ff0530ead06dfb8a80479e34fd362 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com> Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qdoc/doc/qdoc-manual.qdoc25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/tools/qdoc/doc/qdoc-manual.qdoc b/src/tools/qdoc/doc/qdoc-manual.qdoc
index 92b6b9f100..29147494fa 100644
--- a/src/tools/qdoc/doc/qdoc-manual.qdoc
+++ b/src/tools/qdoc/doc/qdoc-manual.qdoc
@@ -5551,25 +5551,18 @@
\target qmlsignal-command
\section1 \\qmlsignal
- The \\qmlsignal command is for documenting a
- \l{http://doc.qt.nokia.com/4.7/qdeclarativeintroduction.html#signal-handlers}
- {signal handler}.
- The argument is the rest of the line. It should be the QML type where the
- signal handler is declared, the \c{::} qualifier, and finally the signal
- handler name. If we have a QML signal handler named \c onAdd() in QML
- element \c MouseArea, the \\qmlsignal for it would look like this:
+ The \\qmlsignal command is for documenting a QML signal.
+ The argument is the rest of the line. The arguments should be: the QML type
+ where the signal is declared, the \c{::} qualifier, and finally the signal
+ name. If we have a QML signal named \c clicked(), the documentation for it
+ would look like this:
\code
/ *!
- \qmlsignal MouseArea::onEntered()
-
- This handler is called when the mouse enters the mouse area.
-
- By default the onEntered handler is only called while a button is
- pressed. Setting hoverEnabled to true enables handling of
- onEntered when no mouse button is pressed.
-
- \sa hoverEnabled
+ \qmlsignal UIComponents::Button::clicked()
+ This signal is emitted when the user clicks the button. A click is defined
+ as a press followed by a release. The corresponding handler is
+ \c onClicked.
* /
\endcode