diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-10-06 04:31:56 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-10-06 04:31:56 (GMT) |
commit | 2d7ad6196158a6138c946a5d26eefe9ac32f0773 (patch) | |
tree | 38754037e6014f7b4696456501e5c551925a778c /examples | |
parent | c9049c0348fe1fffd08edb839012c80a4bd59afd (diff) | |
download | Qt-2d7ad6196158a6138c946a5d26eefe9ac32f0773.zip Qt-2d7ad6196158a6138c946a5d26eefe9ac32f0773.tar.gz Qt-2d7ad6196158a6138c946a5d26eefe9ac32f0773.tar.bz2 |
lowercase ids
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/states/transitions.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml index be1419d..cc6894d 100644 --- a/examples/declarative/states/transitions.qml +++ b/examples/declarative/states/transitions.qml @@ -1,25 +1,25 @@ import Qt 4.6 Rectangle { - id: Page + id: page width: 300; height: 300; color: "white" // A target region. Clicking in here sets the state to '' - the default state Rectangle { x: 0; y: 0; width: 50; height: 50 color: "transparent"; border.color: "black" - MouseRegion { anchors.fill: parent; onClicked: { Page.state='' } } + MouseRegion { anchors.fill: parent; onClicked: { page.state='' } } } // Another target region. Clicking in here sets the state to 'Position1' Rectangle { x: 150; y: 50; width: 50; height: 50 color: "transparent"; border.color: "black" - MouseRegion { anchors.fill: parent; onClicked: { Page.state='Position1' } } + MouseRegion { anchors.fill: parent; onClicked: { page.state='Position1' } } } // Another target region. Clicking in here sets the state to 'Position2' Rectangle { x: 0; y: 200; width: 50; height: 50 color: "transparent"; border.color: "black" - MouseRegion { anchors.fill: parent; onClicked: { Page.state='Position2' } } + MouseRegion { anchors.fill: parent; onClicked: { page.state='Position2' } } } // Rect which will be moved when my state changes Rectangle { id: myrect; width: 50; height: 50; color: "red" } @@ -34,7 +34,7 @@ Rectangle { y: 50 } }, - // In state 'Position2', change y to 100. We do not specify 'x' here - + // In state 'Position2', change y to 100. We do not specify 'x' here - // it will therefore be restored to its default value of 0, if it // had been changed. State { |