aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicklistview.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-14 01:00:08 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-14 01:00:09 +0100
commite6199a8357cb9a97a3de0e86af387ddbe15a18ea (patch)
treec33fdae61742736ad47a33ddc2458aed07d53b1b /src/quick/items/qquicklistview.cpp
parent57604562db870f7b05d4349761d73e054dbe04c6 (diff)
parent68d0377736a541fa29d1aaba6b7aa4a4cf8781ef (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'src/quick/items/qquicklistview.cpp')
-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 2a59e50304..81d019a26d 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: