Add SnapPosition mode to positionViewAtIndex() in List/GridView.
authorMartin Jones <martin.jones@nokia.com>
Thu, 26 Jul 2012 03:14:50 +0000 (13:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Jul 2012 01:08:24 +0000 (03:08 +0200)
commit3a045419ba588107d7730978c14643d68340f24b
tree2d9d84b06b4ae762dfc46a5bfbea5ee31f560e8d
parent4dcd5ae1e27252755a51dec139269bc4f998adb4
Add SnapPosition mode to positionViewAtIndex() in List/GridView.

This allows the view to be positioned on a snap boundary, which is
generally what is wanted when strict highlight mode s set or snapping
is enabled.

Task-number: QTBUG-26605
Change-Id: I6288dc8be4ff16c412b56ab449b6a9fb7b7ea889
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickgridview.cpp
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemview_p.h
src/quick/items/qquicklistview.cpp
tests/auto/quick/qquickgridview/data/layouts.qml
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
tests/auto/quick/qquicklistview/data/listviewtest.qml
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp