View highlight flickers with highlightRangeMode: ApplyRange
authorMartin Jones <martin.jones@nokia.com>
Wed, 27 Jul 2011 00:08:58 +0000 (10:08 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jul 2011 03:04:24 +0000 (05:04 +0200)
commit7062c0e2d273ed32a7fd33d5320e811ef72e6682
tree94f48c0fcc4062029ac0b78cd31b97ee0791ef6f
parent0e008e9a8fc32d84c03e88a4a41ec8801b274979
View highlight flickers with highlightRangeMode: ApplyRange

The view position was alternating between the start and end
of the highlight range if the range < delegate size.  Now
favor the range start in this case, as per StrictlyEnforceRange.

Change-Id: Icb895f972ccb9598ecf7238259093584c43ae291
Fixes: QTBUG-18067
Reviewed-on: http://codereview.qt.nokia.com/2226
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qsgitemview.cpp
src/qtquick1/graphicsitems/qdeclarativegridview.cpp
src/qtquick1/graphicsitems/qdeclarativelistview.cpp