Fix conversion of QAbstractItemModel::rowsMoved() parameters
authorBea Lam <bea.lam@nokia.com>
Mon, 29 Aug 2011 03:58:05 +0000 (13:58 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 29 Aug 2011 23:55:59 +0000 (01:55 +0200)
commit440fb56b3095b96b08b5401568eca4c3307270a0
tree31dc2abcdae01c129c10973dbf45592f272300ef
parente32deb72e8559afae0b29325f9b13ab6a8a0c7c3
Fix conversion of QAbstractItemModel::rowsMoved() parameters

VisualDataModel was emitting itemsMoved() signal with incorrect
"to" value when multiple items were moved forwards.

(change cherry picked from b64817858484db6e7c280d41ed81d4c87dff2275)

Change-Id: I684eb1716d2ad6e0f702e95d9c0cd5c6fe2c9cbb
Reviewed-on: http://codereview.qt.nokia.com/3694
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/items/qsgvisualitemmodel.cpp
src/qtquick1/graphicsitems/qdeclarativevisualitemmodel.cpp
tests/auto/declarative/qsgvisualdatamodel/tst_qsgvisualdatamodel.cpp