Ensure layout is done after delayed deletion of items
authorBea Lam <bea.lam@nokia.com>
Fri, 2 Sep 2011 08:04:00 +0000 (18:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Sep 2011 08:01:57 +0000 (10:01 +0200)
Regression from 1dd8b509074ba60da671f7671f8cf09c3fc001ae

Change-Id: I5957444e2f1493aa8fbf3b532fd1ef704deec50c
Reviewed-on: http://codereview.qt.nokia.com/4118
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/declarative/items/qsgitemview.cpp

index 401a17e..141be4f 100644 (file)
@@ -775,6 +775,7 @@ void QSGItemView::destroyRemoved()
 
     // Correct the positioning of the items
     d->updateSections();
+    d->forceLayout = true;
     d->layout();
 }