Don't call componentComplete() on a VDM until its view is complete.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 5 Oct 2011 06:03:12 +0000 (16:03 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 6 Oct 2011 08:44:27 +0000 (10:44 +0200)
commit8c51219a4db23a9402d03554d079798ae7c6fc98
tree242d9661d96fb6bbb21b2272538ab527b538a786
parentfac7ee6085fe0ebd0dcfd16407b4bc99faaef07b
Don't call componentComplete() on a VDM until its view is complete.

This is more consistent with the behaviour you get when constructing
a VisualDataModel explicitly.

Change-Id: I33e32c7747ff3153449a88b9c7d894807e7e4b9a
Reviewed-on: http://codereview.qt-project.org/6014
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qsgitemview.cpp
src/declarative/items/qsgpathview.cpp
src/declarative/items/qsgrepeater.cpp
src/declarative/items/qsgvisualdatamodel.cpp
tests/auto/declarative/qsggridview/data/gridview4.qml
tests/auto/declarative/qsggridview/tst_qsggridview.cpp