diff options
author | Michael Brasser <mbrasser@ford.com> | 2017-08-31 16:53:21 -0500 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2017-09-08 21:13:40 +0000 |
commit | 0b73daa4f6858aa8d52e6b958d8f0b3209858b80 (patch) | |
tree | 6af4c483d93d32a56a5eae201de925c26fbe71fe /tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds3.qml | |
parent | c1fed764a2495373a9e4563bc3ac0d578b2f9409 (diff) |
Fix issue with programmatic flicking at bounds
Ensure that the same flick consistently produces the same results,
by making sure we don't use old timestamps from previous flicks.
Task-number: QTBUG-62939
Change-Id: Ie738076abba66d38ff505292925e9441c38a3c95
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds3.qml')
-rw-r--r-- | tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds3.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds3.qml b/tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds3.qml new file mode 100644 index 0000000000..bd913b2ce1 --- /dev/null +++ b/tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds3.qml @@ -0,0 +1,19 @@ +import QtQuick 2.9 + +ListView { + id: view + width: 200; height: 400 + + property real minOvershoot + onVerticalOvershootChanged: if (verticalOvershoot < minOvershoot) minOvershoot = verticalOvershoot + + highlightRangeMode: ListView.StrictlyEnforceRange + preferredHighlightBegin: 0 + preferredHighlightEnd: 0 + + model: 10 + delegate: Rectangle { + width: 200; height: 50 + color: index % 2 ? "red" : "green" + } +} |