summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-11 00:54:11 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-11 00:54:11 (GMT)
commit7051254771882e88f64f9b5578d975f29efab0b6 (patch)
treef71981bafba35a768a63b243920a590ce29e6c18 /examples
parent804c9ef64085fafe6f12b92e5dd40e595ed3460f (diff)
downloadQt-7051254771882e88f64f9b5578d975f29efab0b6.zip
Qt-7051254771882e88f64f9b5578d975f29efab0b6.tar.gz
Qt-7051254771882e88f64f9b5578d975f29efab0b6.tar.bz2
current -> currentItem property in ListView and GridView
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/listview/highlight.qml2
-rw-r--r--examples/declarative/loader/Browser.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/listview/highlight.qml b/examples/declarative/listview/highlight.qml
index e707ac0..cb92ad9 100644
--- a/examples/declarative/listview/highlight.qml
+++ b/examples/declarative/listview/highlight.qml
@@ -44,7 +44,7 @@ Rectangle {
id: PetHighlight
Rectangle {
width: 200; height: 50; color: "#FFFF88"
- y: SpringFollow { source: List1.current.y; spring: 3; damping: 0.1 }
+ y: SpringFollow { source: List1.currentItem.y; spring: 3; damping: 0.1 }
}
}
ListView {
diff --git a/examples/declarative/loader/Browser.qml b/examples/declarative/loader/Browser.qml
index 196cdc5..6711de4 100644
--- a/examples/declarative/loader/Browser.qml
+++ b/examples/declarative/loader/Browser.qml
@@ -82,7 +82,7 @@ Rectangle {
focus: true
Keys.onPressed: {
if (event.key == Qt.Key_Return || event.key == Qt.Key_Select) {
- View.current.launch();
+ View.currentItem.launch();
event.accepted = true;
}
}