Fix invalid remove cache indexes caused by consecutive ranges.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 4 Nov 2011 03:43:15 +0000 (13:43 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 Nov 2011 06:00:54 +0000 (07:00 +0100)
commitb2ead4c58908968a7c4885751360fa7ed2b58369
treef66bd6de66cf6d44f5ecdc7620e229d3cc7eaf57
parent1e542c8cd2fdd167c2b20a955034b0afe3b7268b
Fix invalid remove cache indexes caused by consecutive ranges.

listItemsRemoved attempts to merge and consecutive cache only ranges
it produces, this same logic would also merge other consecutive ranges
incorrectly incrementing the cacheIndex in the process.  Since
listItemsRemoved won't produce these consecutive ranges itself handle
only the cache only ranges there and compress the other consecutive
ranges where they originate.

Change-Id: If4d95fb741c8e7003ed48bfb2559c30c948c255b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/util/qdeclarativelistcompositor.cpp
tests/auto/declarative/qdeclarativelistcompositor/tst_qdeclarativelistcompositor.cpp