Fix inserting before the visible area into cache buffer
authorBea Lam <bea.lam@nokia.com>
Fri, 18 Nov 2011 02:04:56 +0000 (12:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 22 Nov 2011 05:14:56 +0000 (06:14 +0100)
commitd2d4024afb4e7a93c0d09e474f73ad274e23d78a
tree9a1fb36922f740cb16e1b8d8d5a070b2e7ac73db
parent18e89379f8db9b656885739daef5d24aa24fb92c
Fix inserting before the visible area into cache buffer

Items being inserted after the visible index must be created, even if
they aren't in view (e.g. are in the cache buffer) otherwise they will
not appear at the correct index in the visibleItems list.

Task-number: QTBUG-22772
Change-Id: I235dc766a6abf4988872bb70aa40cdc767df8c96
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qquickgridview.cpp
src/declarative/items/qquicklistview.cpp
tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp
tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp