| author | William Roberts <williamr@symbian.org> |
| Thu, 22 Jul 2010 16:41:55 +0100 | |
| branch | GCC_SURGE |
| changeset 31 | 5daf16870df6 |
| parent 30 | 5dc02b23752f |
| permissions | -rw-r--r-- |
import Qt 4.7 Rectangle { width: 400 height: 400 Rectangle { id: theRect objectName: "TheRect" color: "red" width: 50; height: 50 x: 100; y: 100 } states: State { name: "moved" PropertyChanges { target: theRect x: 200 } } transitions: Transition { NumberAnimation { targets: theItem; properties: "x" } } MouseArea { anchors.fill: parent onClicked: parent.state = "moved" } }