| changeset 37 | 758a864f9613 |
| 36:ef0373b55136 | 37:758a864f9613 |
|---|---|
1 import Qt 4.7 |
|
2 |
|
3 Rectangle { |
|
4 width: 200 |
|
5 height: 200 |
|
6 |
|
7 Rectangle { |
|
8 id: rect |
|
9 objectName: "greenRect" |
|
10 width: 100 |
|
11 height: 100 |
|
12 color: "green" |
|
13 } |
|
14 |
|
15 states:[ |
|
16 State { |
|
17 name: "a" |
|
18 PropertyChanges { target: rect; x: 100 } |
|
19 }, |
|
20 State { |
|
21 name: "b" |
|
22 extend:"a" |
|
23 PropertyChanges { target: rect; y: 100 } |
|
24 } |
|
25 ] |
|
26 } |