Fix moving of multiple items, and moving items backwards
authorBea Lam <bea.lam@nokia.com>
Wed, 27 Jul 2011 08:30:05 +0000 (18:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jul 2011 05:12:34 +0000 (07:12 +0200)
commite2b5681b1adab83555c7307b05f508d796a1152b
treec19df1b0e1ab62a3694b53371803ff76a054fd3c
parent14496b18a67982ee25ed43aed6b6bcd7d6fa23ee
Fix moving of multiple items, and moving items backwards

To fix backward movements, all backward movements are now flipped
into forward movements (as is done in ListModel implemenation).

Movement of multiple items wasn't working as views weren't removing
the right indexes in these cases.

Task-number: QTBUG-19208
Change-Id: I9866ddabc241c066bb77329a6761d500d79aaf61
Reviewed-on: http://codereview.qt.nokia.com/2262
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/items/qsggridview.cpp
src/declarative/items/qsgitemview.cpp
src/declarative/items/qsgitemview_p_p.h
src/declarative/items/qsglistview.cpp
tests/auto/declarative/qsggridview/tst_qsggridview.cpp
tests/auto/declarative/qsglistview/tst_qsglistview.cpp