diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-04-17 11:35:14 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-01 02:53:21 +0200 |
commit | 0795351f7c252f1eed97253f64e2d5839ad8a975 (patch) | |
tree | a19a42df0c551bbbbc78bee4505a32107d5a6f32 /src/quick/items/qquickitemviewtransition.cpp | |
parent | 6a7084fed1ba94ce135330f35677f71a985df9a3 (diff) |
populate transition for positioners
Fix positioners to apply a "populate" transition for initially added
items. This is consistent with ListView and GridView and also fixes the
behaviour from QtQuick 1.x where the positioners were instead running
the "move" transition for initially added items.
Change-Id: Ib43f1141ce3e7379df085c178b684f89b8567403
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/items/qquickitemviewtransition.cpp')
-rw-r--r-- | src/quick/items/qquickitemviewtransition.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/quick/items/qquickitemviewtransition.cpp b/src/quick/items/qquickitemviewtransition.cpp index c680945e04..c1f1e515ff 100644 --- a/src/quick/items/qquickitemviewtransition.cpp +++ b/src/quick/items/qquickitemviewtransition.cpp @@ -577,8 +577,8 @@ QQuickViewTransitionAttached::QQuickViewTransitionAttached(QObject *parent) operations: \list - \li \c populate - the transition to run when a view is created, or when the model changes - \li \c add - the transition to apply to items that are added to the view + \li \c populate - the transition to apply to the items created initially for the view, or when the model changes + \li \c add - the transition to apply to items that are added to the view after it has been created \li \c remove - the transition to apply to items that are removed from the view \li \c move - the transition to apply to items that are moved within the view (i.e. as a result of a move operation in the model) @@ -593,7 +593,9 @@ QQuickViewTransitionAttached::QQuickViewTransitionAttached(QObject *parent) items rather than data models, the following properties are used instead: \list - \li \c add - the transition to apply to items that are created for the positioner, added to + \li \c populate - the transition to apply to items that have been added to the positioner at the + time of its creation + \li \c add - the transition to apply to items that are added to or reparented to the positioner, or items that have become \l {Item::}{visible} \li \c move - the transition to apply to items that have moved within the positioner, including when they are displaced due to the addition or removal of other items, or when items are otherwise |