diff options
Diffstat (limited to 'examples/declarative/states')
-rw-r--r-- | examples/declarative/states/states.qml | 6 | ||||
-rw-r--r-- | examples/declarative/states/transitions.qml | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/states/states.qml b/examples/declarative/states/states.qml index 431f0bc..c4c71b5 100644 --- a/examples/declarative/states/states.qml +++ b/examples/declarative/states/states.qml @@ -6,19 +6,19 @@ Rect { // A target region. Clicking in here sets the state to '' - the default state Rect { x: 0; y: 0; width: 50; height: 50 - color: "transparent"; pen.color: "black" + color: "transparent"; border.color: "black" MouseRegion { anchors.fill: parent; onClicked: { Page.state='' } } } // Another target region. Clicking in here sets the state to 'Position1' Rect { x: 150; y: 50; width: 50; height: 50 - color: "transparent"; pen.color: "black" + 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 { x: 0; y: 200; width: 50; height: 50 - color: "transparent"; pen.color: "black" + color: "transparent"; border.color: "black" MouseRegion { anchors.fill: parent; onClicked: { Page.state='Position2' } } } // Rect which will be moved when my state changes diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml index 7bc7f6c..63ed4d9 100644 --- a/examples/declarative/states/transitions.qml +++ b/examples/declarative/states/transitions.qml @@ -6,19 +6,19 @@ Rect { // A target region. Clicking in here sets the state to '' - the default state Rect { x: 0; y: 0; width: 50; height: 50 - color: "transparent"; pen.color: "black" + color: "transparent"; border.color: "black" MouseRegion { anchors.fill: parent; onClicked: { Page.state='' } } } // Another target region. Clicking in here sets the state to 'Position1' Rect { x: 150; y: 50; width: 50; height: 50 - color: "transparent"; pen.color: "black" + 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 { x: 0; y: 200; width: 50; height: 50 - color: "transparent"; pen.color: "black" + color: "transparent"; border.color: "black" MouseRegion { anchors.fill: parent; onClicked: { Page.state='Position2' } } } // Rect which will be moved when my state changes |