summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-06-18 08:23:59 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-06-18 08:23:59 (GMT)
commit700d5f11dab745d920026b781f66b09e60499013 (patch)
tree8cfe725ea1d7aa5ab3cba80a615df1b37e7af275 /examples
parent7862e3f5b6585dc17cc09a6a2a1c0f4004cee497 (diff)
downloadQt-700d5f11dab745d920026b781f66b09e60499013.zip
Qt-700d5f11dab745d920026b781f66b09e60499013.tar.gz
Qt-700d5f11dab745d920026b781f66b09e60499013.tar.bz2
Expose the row and column of an item as an attached property
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/flowview/flowview.qml15
1 files changed, 13 insertions, 2 deletions
diff --git a/examples/declarative/flowview/flowview.qml b/examples/declarative/flowview/flowview.qml
index 7a05c9b..4c9aecc 100644
--- a/examples/declarative/flowview/flowview.qml
+++ b/examples/declarative/flowview/flowview.qml
@@ -60,13 +60,24 @@ Rect {
SetProperties { target: MyContent; x: 0; y: 0; }
}
]
- transitions: Transition {
- fromState: "*"; toState: "*";
+ transitions: [
+ Transition {
+ fromState: "*"; toState: "InGrid"
SequentialAnimation {
ParentChangeAction{}
+ PauseAnimation { duration: 50 * List.FlowView.column }
+ NumericAnimation { properties: "x,y,rotation"; easing: "easeInOutQuad" }
+ }
+ },
+ Transition {
+ fromState: "*"; toState: "InList"
+ SequentialAnimation {
+ ParentChangeAction{}
+ PauseAnimation { duration: 50 * (Grid.FlowView.row * 2 + Grid.FlowView.column) }
NumericAnimation { properties: "x,y,rotation"; easing: "easeInOutQuad" }
}
}
+ ]
}
}