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