diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-09-13 00:54:25 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-09-13 00:54:25 (GMT) |
commit | 90c8a68eef4a87209279f4c528c540efe6525384 (patch) | |
tree | 6d5bc75204a67e2b63519c04df7e945fdf5b4cce /src/declarative/graphicsitems/qdeclarativegridview.cpp | |
parent | b04672e479ae245063e641c77d43e311c0851dc0 (diff) | |
download | Qt-90c8a68eef4a87209279f4c528c540efe6525384.zip Qt-90c8a68eef4a87209279f4c528c540efe6525384.tar.gz Qt-90c8a68eef4a87209279f4c528c540efe6525384.tar.bz2 |
Ensure flickable velocity is updated when view is moved by setCurrentIndex
Task-number: QTBUG-13543
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index a0faf14..6a99733 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -2241,7 +2241,9 @@ void QDeclarativeGridView::trackedPositionChanged() } if (viewPos != pos) { cancelFlick(); + d->calcVelocity = true; d->setPosition(pos); + d->calcVelocity = false; } } } |