| changeset 30 | 5dc02b23752f |
| 29:b72c6db6890b | 30:5dc02b23752f |
|---|---|
1 import Qt 4.7 |
|
2 Rectangle { |
|
3 id: myRectangle |
|
4 width: 100; height: 100 |
|
5 color: "red" |
|
6 states: [ |
|
7 State { |
|
8 name: "blue" |
|
9 PropertyChanges { target: myRectangle; color: "blue" } |
|
10 }, |
|
11 State { |
|
12 name: "green" |
|
13 PropertyChanges { target: myRectangle; color: "green" } |
|
14 }] |
|
15 } |