summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-12-22 06:15:28 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-12-22 06:36:41 (GMT)
commitcb31612bf6a48f995fbc05b5e8aa924e13034ae4 (patch)
tree78da6041402b81e955d1db8b983e098aea4470ba /tests
parente50a0ad18c40322ca0c06a11e7dc7b9a82951f16 (diff)
downloadQt-cb31612bf6a48f995fbc05b5e8aa924e13034ae4.zip
Qt-cb31612bf6a48f995fbc05b5e8aa924e13034ae4.tar.gz
Qt-cb31612bf6a48f995fbc05b5e8aa924e13034ae4.tar.bz2
Removing all visible items in ListView resulted in blank view.
When delayRemove is true and all visible items are tagged to be removed the visibleIndex became invalid and refill() began filling from 0. Task-number: QTBUG-16183 Reviewed-by: Michael Brasser
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp b/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp
index 3df10a9..dba0cc4 100644
--- a/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp
+++ b/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp
@@ -667,7 +667,8 @@ void tst_QDeclarativeListView::removed(bool animated)
listview->setContentY(80);
QTest::qWait(300);
- model.removeItems(1, 17);
+ // remove all visible items
+ model.removeItems(1, 18);
QTest::qWait(300);
// Confirm items positioned correctly