summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-14 23:32:48 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-14 23:32:48 (GMT)
commitfb8d3d1b325ecbe947f0cc8001f92d01a849f323 (patch)
treeeb10e04e39e3252bbf8d6911d17e7387278f376e /doc/src
parentd530439e01867eca1aab6544636aca0a20f122e7 (diff)
downloadQt-fb8d3d1b325ecbe947f0cc8001f92d01a849f323.zip
Qt-fb8d3d1b325ecbe947f0cc8001f92d01a849f323.tar.gz
Qt-fb8d3d1b325ecbe947f0cc8001f92d01a849f323.tar.bz2
More ListView API changes.
ListView: wrap -> keyNavigationWraps ListView: autoHighlight -> highlightFollowsCurrentItem
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/declarative/listview/highlight.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/snippets/declarative/listview/highlight.qml b/doc/src/snippets/declarative/listview/highlight.qml
index 29f41bf..97eac45 100644
--- a/doc/src/snippets/declarative/listview/highlight.qml
+++ b/doc/src/snippets/declarative/listview/highlight.qml
@@ -15,7 +15,7 @@ Rectangle {
Item {
id: Wrapper
width: 180; height: 40
- VerticalLayout {
+ Column {
x: 5; y: 5
Text { text: '<b>Name:</b> ' + name }
Text { text: '<b>Number:</b> ' + number }
@@ -32,10 +32,10 @@ Rectangle {
Rectangle {
width: 180; height: 40
color: "lightsteelblue"; radius: 5
- y: Follow {
- source: List.current.y
+ y: SpringFollow {
+ source: List.currentItem.y
spring: 3
- damping: 0.1
+ damping: 0.2
}
}
}
@@ -44,7 +44,7 @@ Rectangle {
width: parent.height; height: parent.height
model: ContactModel; delegate: Delegate
highlight: Highlight
- autoHighlight: false
+ highlightFollowsCurrentItem: false
focus: true
}
//! [1]