Improvements to listmodel implementation and tests.
authorGlenn Watson <glenn.watson@nokia.com>
Tue, 8 Nov 2011 22:11:21 +0000 (08:11 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 9 Nov 2011 21:46:06 +0000 (22:46 +0100)
commitac5743847fa8283201458ea0ae977df366b752ab
tree6610174bd0c368241021cc504c519b91dd51bd71
parent39b7c020a38a2a0dadc72c2f841fdb8f322f8588
Improvements to listmodel implementation and tests.

- Fixed edge case crash bug with QObjects being set on existing
    listmodel element.
- Improved warning messages when assigning wrong type to role.
- Removed a few code paths that can never be hit.
- Added several tests to cover functionality not hit by coverage.

Change-Id: I3d237c0555afbba6377b4d898bec911515b1b4ea
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/util/qdeclarativelistmodel.cpp
src/declarative/util/qdeclarativelistmodel_p_p.h
src/declarative/util/qdeclarativelistmodelworkeragent.cpp
src/declarative/util/qdeclarativelistmodelworkeragent_p.h
tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp