diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-02-14 01:00:08 +0100 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-02-14 01:00:09 +0100 |
commit | e6199a8357cb9a97a3de0e86af387ddbe15a18ea (patch) | |
tree | c33fdae61742736ad47a33ddc2458aed07d53b1b /src/quick/items/qquicklistview.cpp | |
parent | 57604562db870f7b05d4349761d73e054dbe04c6 (diff) | |
parent | 68d0377736a541fa29d1aaba6b7aa4a4cf8781ef (diff) |
Merge remote-tracking branch 'origin/5.12' into 5.13
Change-Id: I2842f4a8096c4555e29f08e65b88b77b841441cb
Diffstat (limited to 'src/quick/items/qquicklistview.cpp')
-rw-r--r-- | src/quick/items/qquicklistview.cpp | 5 |
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: |