Don't emit model reset on completing a VisualDataModel.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 8 Nov 2011 02:09:39 +0000 (12:09 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Dec 2011 08:09:06 +0000 (09:09 +0100)
commitad91ab8b7db93ee13db18b1284542b9853183092
tree1eba010316022940dd070202a48f540b280e533e
parent54fad1bb8d7b3e249926e088b424085c9336d784
Don't emit model reset on completing a VisualDataModel.

The views try and retain their current state as much as possible on
a reset which prevents the current item being set to a valid item as
would happen if the VisualDataModel was completed before the view.

Change-Id: I593a850aeeb58846ab500f193487db4033e26399
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickvisualdatamodel.cpp
tests/auto/qtquick2/qquicklistview/data/listview-sections-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicklistview/data/listviewtest-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicklistview/tst_qquicklistview.cpp
tests/auto/qtquick2/qquickpathview/tst_qquickpathview.cpp
tests/auto/qtquick2/qquickvisualdatamodel/data/packageView.qml
tests/auto/qtquick2/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp