diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-10-21 01:40:50 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-10-21 01:40:50 (GMT) |
commit | db6a53356aa72e59fcbc631c5cde77c14d51acc1 (patch) | |
tree | 4c5ad2bbbf20fde53226d7c3a2cc8ad608f19853 /doc/src/snippets/declarative/listview | |
parent | 23855460a40a5a866837ca9b4348abc257a90ad1 (diff) | |
download | Qt-db6a53356aa72e59fcbc631c5cde77c14d51acc1.zip Qt-db6a53356aa72e59fcbc631c5cde77c14d51acc1.tar.gz Qt-db6a53356aa72e59fcbc631c5cde77c14d51acc1.tar.bz2 |
Docs.
Diffstat (limited to 'doc/src/snippets/declarative/listview')
-rw-r--r-- | doc/src/snippets/declarative/listview/highlight.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/listview/highlight.qml b/doc/src/snippets/declarative/listview/highlight.qml index 2234ee7..7970ede 100644 --- a/doc/src/snippets/declarative/listview/highlight.qml +++ b/doc/src/snippets/declarative/listview/highlight.qml @@ -20,6 +20,18 @@ Rectangle { Text { text: '<b>Name:</b> ' + name } Text { text: '<b>Number:</b> ' + number } } + // Use the ListView.isCurrentItem attached property to + // indent the item if it is the current item. + states: [ + State { + name: "Current" + when: wrapper.ListView.isCurrentItem + PropertyChanges { target: wrapper; x: 10 } + } + ] + transitions: [ + Transition { NumberAnimation { properties: "x"; duration: 200 } } + ] } } //! [0] |