summaryrefslogtreecommitdiffstats
path: root/examples/declarative/states/transitions.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-19 06:34:44 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-19 08:15:20 (GMT)
commit21e87b18698c50bcfe0800509563e71c79aae0bb (patch)
tree4567cb8a5bd3127fe98d7ce5a5042550bca48b7b /examples/declarative/states/transitions.qml
parent51555ed45f6397fa7cdfae771ee6275733bce615 (diff)
downloadQt-21e87b18698c50bcfe0800509563e71c79aae0bb.zip
Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.gz
Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.bz2
Renaming Rect -> Rectangle
Diffstat (limited to 'examples/declarative/states/transitions.qml')
-rw-r--r--examples/declarative/states/transitions.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml
index 63ed4d9..15c2336 100644
--- a/examples/declarative/states/transitions.qml
+++ b/examples/declarative/states/transitions.qml
@@ -1,28 +1,28 @@
import Qt 4.6
-Rect {
+Rectangle {
id: Page
width: 300; height: 300; color: "white"
// A target region. Clicking in here sets the state to '' - the default state
- Rect {
+ Rectangle {
x: 0; y: 0; width: 50; height: 50
color: "transparent"; border.color: "black"
MouseRegion { anchors.fill: parent; onClicked: { Page.state='' } }
}
// Another target region. Clicking in here sets the state to 'Position1'
- Rect {
+ Rectangle {
x: 150; y: 50; width: 50; height: 50
color: "transparent"; border.color: "black"
MouseRegion { anchors.fill: parent; onClicked: { Page.state='Position1' } }
}
// Another target region. Clicking in here sets the state to 'Position2'
- Rect {
+ Rectangle {
x: 0; y: 200; width: 50; height: 50
color: "transparent"; border.color: "black"
MouseRegion { anchors.fill: parent; onClicked: { Page.state='Position2' } }
}
// Rect which will be moved when my state changes
- Rect { id: myrect; width: 50; height: 50; color: "red" }
+ Rectangle { id: myrect; width: 50; height: 50; color: "red" }
states: [
// In state 'Position1', change the 'myrect' item x, y to 150, 50.