Fix tests broken by a change in the signals emitted by AbstractItemModel
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 9 Dec 2011 06:07:37 +0000 (16:07 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 9 Dec 2011 06:28:39 +0000 (07:28 +0100)
commitf64d29ea65d002d1af3f24cc05f9859f629fa4fe
treef5fbb26d932fb12640bdd6344b451ebe2ec25b03
parent8c82a7bade2bef82b3cf3e38ebef2c0c4777e5fa
Fix tests broken by a change in the signals emitted by AbstractItemModel

QAbstractItemModel used to emit both layoutChanged() and rowsMoved()
when items were moved.  The VisualDataModel test expected both signals
but was only interested in the move, and the grid view test had a bug
in its test model that didn't was hidden by the change signal being
emitted and causing bindings to be reevaluated.

Change-Id: Id5d1b5768717f4a82f6eb4710ff3b4429529193e
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp
tests/auto/qtquick2/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp