Changing PathView model after componentComplete should reset position
authorMartin Jones <martin.jones@nokia.com>
Wed, 18 Jul 2012 00:36:17 +0000 (10:36 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Jul 2012 01:30:23 +0000 (03:30 +0200)
commit0fc361f96b06ba318e70610e46beb421753cae9d
tree8b5ea97dc869f3896f7fc565fc15def3ad131254
parent33fcc79a88fbc66a3a714913392a331f2bb601b3
Changing PathView model after componentComplete should reset position

If the model is changed after the component is completed, the offset
and currentIndex should be reset to 0.

Change-Id: Ie36eb0c17ce6602c6ae15b5ee7aeb8b1a6e7854b
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/doc/src/whatsnew.qdoc
src/quick/items/qquickpathview.cpp
tests/auto/quick/qquickpathview/data/initialCurrentIndex.qml [new file with mode: 0644]
tests/auto/quick/qquickpathview/tst_qquickpathview.cpp