equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
2 |
|
3 Grid { |
|
4 id: myGrid |
|
5 |
|
6 width: 270 |
|
7 height: 270 |
|
8 x: 3 |
|
9 y: 3 |
|
10 columns: 4 |
|
11 spacing: 3 |
|
12 |
|
13 add: columnTransition |
|
14 move: columnTransition |
|
15 |
|
16 Repeater { |
|
17 model: 20 |
|
18 Rectangle { color: "black"; width: 50; height: 50 } |
|
19 } |
|
20 |
|
21 data: [ |
|
22 Transition { |
|
23 id: rowTransition |
|
24 objectName: "rowTransition" |
|
25 NumberAnimation { |
|
26 properties: "x,y"; |
|
27 easing.type: "OutInCubic" |
|
28 } |
|
29 }, |
|
30 Transition { |
|
31 id: columnTransition |
|
32 objectName: "columnTransition" |
|
33 NumberAnimation { |
|
34 properties: "x,y"; |
|
35 easing.type: "OutInCubic" |
|
36 } |
|
37 } |
|
38 ] |
|
39 } |