Fix potential use of incorrect bounds in delegate tracking.
authorMichael Brasser <michael.brasser@live.com>
Tue, 7 Jul 2015 21:51:55 +0000 (16:51 -0500)
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Sun, 12 Jul 2015 10:53:50 +0000 (10:53 +0000)
commite44843bfc8fc8bfd5c987fde08816ec3d81f0cae
tree26f24aa1f0f76a168338b0936c031980f462b168
parent656ebe4316b42f79a464a3ea9b5801538a9609c4
Fix potential use of incorrect bounds in delegate tracking.

Using GridView.SnapToRow and GridView.ApplyRange with a top margin
could lead to the view jumping (rather than smoothly transitioning)
when changing the currentIndex.

Change-Id: I6936b378220f59e8d416f7531cf8b6906c723cb2
Task-number: QTBUG-45640
Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemview_p_p.h
tests/auto/quick/qquickgridview/data/qtbug45640.qml [new file with mode: 0644]
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp