View highlight could stop tracking currentItem.
authorMartin Jones <martin.jones@nokia.com>
Mon, 1 Aug 2011 05:00:30 +0000 (15:00 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 2 Aug 2011 04:42:28 +0000 (06:42 +0200)
commita1bd1690851c905d79ae694c15a04fd12a717f3e
treedbb11131f481fde26d742f881d9c73915f433437
parentaa0448cf1882ddb6e4a959718a6fcc399c36990b
View highlight could stop tracking currentItem.

This happens if the currentIndex is changed
while the view is moving.  The only time the highlight should
not move to the currentItem is in StrictlyEnforceRange mode when
the user is moving the view.

Change-Id: I4d04174c88cde180f9f8a01cbd33af3edbcc3d4d
Fixes: QTBUG-16936
Reviewed-on: http://codereview.qt.nokia.com/2416
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/items/qsggridview.cpp
src/declarative/items/qsglistview.cpp