aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/snapOneItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquicklistview/data/snapOneItem.qml')
-rw-r--r--tests/auto/quick/qquicklistview/data/snapOneItem.qml13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/auto/quick/qquicklistview/data/snapOneItem.qml b/tests/auto/quick/qquicklistview/data/snapOneItem.qml
index d67d8040ca..24ff9cdf53 100644
--- a/tests/auto/quick/qquicklistview/data/snapOneItem.qml
+++ b/tests/auto/quick/qquicklistview/data/snapOneItem.qml
@@ -36,14 +36,23 @@ Rectangle {
highlightRangeMode: ListView.StrictlyEnforceRange
// highlightRangeMode: ListView.NoHighlightRange
highlight: Rectangle { width: 200; height: 200; color: "yellow" }
- flickDeceleration: 200 // encourages long flick
model: 4
delegate: myDelegate
+
+ // speed up test runs
+ flickDeceleration: 5000
+ rebound: Transition {
+ NumberAnimation {
+ properties: "x,y"
+ duration: 30
+ easing.type: Easing.OutBounce
+ }
+ }
}
Text {
anchors.right: parent.right
anchors.bottom: parent.bottom
- text: list.contentX + ", " + list.contentY
+ text: list.contentX.toFixed(1) + ", " + list.contentY.toFixed(1)
}
}