diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-26 04:52:07 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-26 04:52:07 (GMT) |
commit | 3c45c081ce33f05ae200d252ebb5e9e1484bcc6d (patch) | |
tree | 5f8a6752e610ed8ca8bbf0ebd58cf16faad9b5e5 /examples/declarative/listview/recipes.qml | |
parent | 0362832c16f95c2909e2a68351e15242b7d1b795 (diff) | |
download | Qt-3c45c081ce33f05ae200d252ebb5e9e1484bcc6d.zip Qt-3c45c081ce33f05ae200d252ebb5e9e1484bcc6d.tar.gz Qt-3c45c081ce33f05ae200d252ebb5e9e1484bcc6d.tar.bz2 |
Update SetProperties to handle changing bindings
Also removed all uses of SetProperty
Diffstat (limited to 'examples/declarative/listview/recipes.qml')
-rw-r--r-- | examples/declarative/listview/recipes.qml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/declarative/listview/recipes.qml b/examples/declarative/listview/recipes.qml index ae9756c..829f074 100644 --- a/examples/declarative/listview/recipes.qml +++ b/examples/declarative/listview/recipes.qml @@ -14,7 +14,7 @@ Rect { width: List.width // Create a property to contain the visibility of the details. // We can bind multiple element's opacity to this one property, - // rather than having a "SetProperty" line for each element we + // rather than having a "SetProperties" line for each element we // want to fade. property real detailsOpacity : 0 @@ -94,20 +94,17 @@ Rect { states: [ State { name: "Details" - SetProperty { target: background; property: "color"; value: "white" } + SetProperties { target: background; color: "white" } // Make the picture bigger SetProperties { target: recipePic; width: 128; height: 128 } // Make details visible SetProperties { target: wrapper; detailsOpacity: 1; x: 0 } // Make the detailed view fill the entire list area - SetProperty { target: wrapper; property: "height"; value: List.height } + SetProperties { target: wrapper; height: List.height } // Move the list so that this item is at the top. - SetProperty { - target: wrapper.ListView.view - property: "yPosition"; value: wrapper.y - } + SetProperties { target: wrapper.ListView.view; explicit: true; yPosition: wrapper.y } // Disallow flicking while we're in detailed view - SetProperty { target: wrapper.ListView.view; property: "locked"; value: 1 } + SetProperties { target: wrapper.ListView.view; locked: 1 } } ] transitions: [ |