diff options
author | Sze Howe Koh <szehowe.koh@gmail.com> | 2014-03-20 21:57:03 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-28 02:42:57 +0100 |
commit | 2341b58b76aea5c627cc656a2406256bac710227 (patch) | |
tree | 7a997207fd36eaecaf8953a50ce557cea12cc778 /src/quick/items/qquickgridview.cpp | |
parent | 37fbfa4dc0de361eb05bc34077bdb8eab1113aad (diff) |
Doc: Document signals (not handlers) under \qmlattachedsignal
- They're not "attached properties" either.
- Append the handler names to the end of the corresponding signal doc.
- Update descriptions and links
Task-number: QTBUG-35846
Change-Id: I54e93187b3209546ec344a20e0482c98d7f14109
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/quick/items/qquickgridview.cpp')
-rw-r--r-- | src/quick/items/qquickgridview.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/quick/items/qquickgridview.cpp b/src/quick/items/qquickgridview.cpp index d56b5d0cab..82658c73fc 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1305,16 +1305,20 @@ void QQuickGridView::setHighlightFollowsCurrentItem(bool autoHighlight) */ /*! - \qmlattachedsignal QtQuick::GridView::onAdd() - This attached handler is called immediately after an item is added to the view. + \qmlattachedsignal QtQuick::GridView::add() + This attached signal is emitted immediately after an item is added to the view. + + The corresponding handler is \c onAdd. */ /*! - \qmlattachedsignal QtQuick::GridView::onRemove() - This attached handler is called immediately before an item is removed from the view. + \qmlattachedsignal QtQuick::GridView::remove() + This attached signal is emitted immediately before an item is removed from the view. If a \l remove transition has been specified, it is applied after - this signal handler is called, providing that delayRemove is false. + this signal is handled, providing that \l delayRemove is false. + + The corresponding handler is \c onRemove. */ @@ -1797,7 +1801,7 @@ void QQuickGridView::setSnapMode(SnapMode mode) populated, or when the view's \l model changes. (In those cases, the \l populate transition is applied instead.) Additionally, this transition should \e not animate the height of the new item; doing so will cause any items beneath the new item to be laid out at the wrong position. Instead, - the height can be animated within a \l {ListView::onAdd}{ListView.onAdd} in the delegate. + the height can be animated within the \l {add}{onAdd} handler in the delegate. \sa addDisplaced, populate, ViewTransition */ |