Don't move view content position item 0 is being replaced
authorBea Lam <bea.lam@nokia.com>
Wed, 27 Jul 2011 07:57:48 +0000 (17:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jul 2011 00:21:28 +0000 (02:21 +0200)
commit70cb4d6d9a2193444d785519a9811dc6693a6ab6
treefccb6286bfe7a138a790d4590679d961d25fc2e0
parent5266db7357f8a0ce4ce175b5becdbdd2c094a808
Don't move view content position item 0 is being replaced

Usually if item 0 moves down, the next item becomes the first visible
item and all content moves down. Don't do this if another item is
moving up to take its place.

Change-Id: If625cfc0eaa70fd1094c7bc0fdd29f5f56766a42
Reviewed-on: http://codereview.qt.nokia.com/2260
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qsggridview.cpp
src/declarative/items/qsglistview.cpp
tests/auto/declarative/qsggridview/tst_qsggridview.cpp
tests/auto/declarative/qsglistview/tst_qsglistview.cpp