PathView element's current item changes on insertion.
authorMartin Jones <martin.jones@nokia.com>
Wed, 9 Nov 2011 05:34:01 +0000 (15:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 Nov 2011 03:30:30 +0000 (04:30 +0100)
commitc2c19f2b8f1feb2d6785800c69f9f351bc317a05
tree55de7adf2449e158fd3c0eaaf5dc4bf70a7c8e72
parentcc6e177d86751e44694e092a15de3260f67def45
PathView element's current item changes on insertion.

When inserting an item before the current item update the offset
to ensure the current item doesn't change.

Task-number: QTBUG-21320
Change-Id: I2375bc5098e7f83c33e7a0b123ed1b82f607055f
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/declarative/items/qquickpathview.cpp
tests/auto/declarative/qquickpathview/data/pathline.qml [new file with mode: 0644]
tests/auto/declarative/qquickpathview/tst_qquickpathview.cpp