aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2014-12-18 10:20:37 -0600
committerMichael Brasser <michael.brasser@live.com>2015-01-13 16:07:25 +0100
commita38f9ec6c96559efa56e8f7346f74f5990810c3a (patch)
tree09c4728e11cca33e7cedcceca49305ce396f4345 /tests/auto/quick/qquicklistview/data
parent6c77a37bfcc5ebf30a126e5c937e8a0ca1773d24 (diff)
Fix flick() with ListView.SnapToItem at bounds.
Previously flick() would not always allow flicking to the very end of a ListView if ListView.SnapToItem were set. Stop ListView from adding overshoot, and then incorrectly correcting, if we are flicking exactly to the end of a list. Change-Id: Iad56e433bc1ba7d62f0553c4355469c9861df919 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'tests/auto/quick/qquicklistview/data')
-rw-r--r--tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds2.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds2.qml b/tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds2.qml
new file mode 100644
index 0000000000..08870a46b9
--- /dev/null
+++ b/tests/auto/quick/qquicklistview/data/programmaticFlickAtBounds2.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+ListView {
+ id: view
+ width: 200; height: 400
+
+ snapMode: ListView.SnapToItem
+
+ model: 10
+ delegate: Rectangle {
+ width: 200; height: 50
+ color: index % 2 ? "red" : "green"
+ }
+}