summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-09-13 00:54:25 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-09-13 00:54:25 (GMT)
commit90c8a68eef4a87209279f4c528c540efe6525384 (patch)
tree6d5bc75204a67e2b63519c04df7e945fdf5b4cce /src/declarative/graphicsitems/qdeclarativegridview.cpp
parentb04672e479ae245063e641c77d43e311c0851dc0 (diff)
downloadQt-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.cpp2
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;
}
}
}