summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-30 05:50:28 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-30 05:50:28 (GMT)
commit541c254ce91ea7dea01081f0b093b902527c3476 (patch)
tree6ef1a32296d62d5addd0214e432aaaa4ba576e27 /examples
parenta47c6ddde353b1ffe8fd4037817143ff9f338654 (diff)
downloadQt-541c254ce91ea7dea01081f0b093b902527c3476.zip
Qt-541c254ce91ea7dea01081f0b093b902527c3476.tar.gz
Qt-541c254ce91ea7dea01081f0b093b902527c3476.tar.bz2
Add ListView snapMode to ensure flicking settles on an item boundary.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/parallax/qml/ParallaxView.qml8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/declarative/parallax/qml/ParallaxView.qml b/examples/declarative/parallax/qml/ParallaxView.qml
index 98dd246..ff4a85a 100644
--- a/examples/declarative/parallax/qml/ParallaxView.qml
+++ b/examples/declarative/parallax/qml/ParallaxView.qml
@@ -25,13 +25,7 @@ Item {
anchors.fill: parent
model: VisualItemModel { id: visualModel }
- highlight: Rectangle { height: 1; width: 1 }
- highlightMoveSpeed: 2000
- preferredHighlightBegin: 0
- preferredHighlightEnd: 0
- highlightRangeMode: "StrictlyEnforceRange"
-
- flickDeceleration: 1000
+ snapMode: ListView.SnapOneItem
}
ListView {