diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-21 01:53:51 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-21 01:53:51 (GMT) |
commit | 10552333c84292473756900b4fdb0c4f91f12a91 (patch) | |
tree | b6d61d7d0ebd3f98d0bcc63e935daa594e12695d /doc/src/snippets | |
parent | be94259250bc84705d71a66f7c114472097c9b4d (diff) | |
parent | ee086ea4fd9baa3df94909dd9f5884578c1eaeb7 (diff) | |
download | Qt-10552333c84292473756900b4fdb0c4f91f12a91.zip Qt-10552333c84292473756900b4fdb0c4f91f12a91.tar.gz Qt-10552333c84292473756900b4fdb0c4f91f12a91.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src/snippets')
-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] |