aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-12-03 11:39:52 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-02-07 08:37:29 +0000
commit612ac8749782af9c58a0e823b7180e0018a42be8 (patch)
treeaf4ebc0fcb2eb2eca8f822bfa96068eafded307a /src
parent895302829b46e00cde8eef13eb7c630af5d771e2 (diff)
Doc: explain when the move velocity and duration properties are used
Change-Id: Iaf7cf035f76a1f198c60f4792d394b0fd19ef901 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquicklistview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp
index 62cbfcef2b..75a24c7d76 100644
--- a/src/quick/items/qquicklistview.cpp
+++ b/src/quick/items/qquicklistview.cpp
@@ -2460,6 +2460,11 @@ QString QQuickListView::currentSection() const
if both the velocity and duration are set, the animation will use
whichever gives the shorter duration.
+ The move velocity and duration properties are used to control movement due
+ to index changes; for example, when incrementCurrentIndex() is called. When
+ the user flicks a ListView, the velocity from the flick is used to control
+ the movement instead.
+
To set only one property, the other can be set to \c -1. For example,
if you only want to animate the duration and not velocity, use the
following code: