aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicklistview.cpp
diff options
context:
space:
mode:
authorBea Lam <[email protected]>2012-08-03 17:18:57 +1000
committerQt by Nokia <[email protected]>2012-08-03 09:47:47 +0200
commit545608ee97c85b3d7c0707e66ed14cf05c390490 (patch)
tree8958e1460302e33476569645ebd2e0617a30bb09 /src/quick/items/qquicklistview.cpp
parent045f8727e7646967dd250f28fdddb7ccb2886397 (diff)
Document that add transitions should not animate item height
Diffstat (limited to 'src/quick/items/qquicklistview.cpp')
-rw-r--r--src/quick/items/qquicklistview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp
index f9ff4db153..b92737c7f7 100644
--- a/src/quick/items/qquicklistview.cpp
+++ b/src/quick/items/qquicklistview.cpp
@@ -2433,8 +2433,10 @@ void QQuickListView::setSnapMode(SnapMode mode)
documentation.
\note This transition is not applied to the items that are created when the view is initially
- populated, or when the view's \l model changes. In those cases, the \l populate transition is
- applied instead.
+ 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.
\sa addDisplaced, populate, ViewTransition
*/