Fix PathView not updating after all items are removed from the model.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 25 May 2012 01:41:17 +0000 (11:41 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 28 May 2012 03:30:34 +0000 (05:30 +0200)
commit2533a40cf26ded5b777aae6b3c49813a044ab735
treedc58ecb893b0049dba16b4926bc211fb8874ae5f
parentd4dad3a0b83c921ed4d746eb9694be8b008bcc1a
Fix PathView not updating after all items are removed from the model.

Always clear the layoutScheduled flag on a refill even if there are no
items to create, otherwise future layouts won't be scheduled because
it appears one is already pending.

Fixes an issue in the dragselection example where items that should
have moved to the PathView instead disappeared.

Change-Id: I4302b5b43184c697a78f5c09dc3811326e2271ca
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickpathview.cpp
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
tests/auto/quick/qquickpositioners/qquickpositioners.pro
tests/auto/quick/shared/util.pri
tests/auto/quick/shared/viewtestutil.h
tests/auto/quick/shared/visualtestutil.h