diff options
author | Sarah Smith <sarah.j.smith@nokia.com> | 2012-03-30 14:33:34 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-30 06:36:05 +0200 |
commit | 204e7ef0fb2084d69a9c86c61d5f506ebb523265 (patch) | |
tree | 337428328545665aba7b37856471881b8a926dba /demos | |
parent | 04ce1bfaadbf391fe8dd801a89024fd63d2b48f4 (diff) |
Removed orientation code.
The rest of the app is not rotation aware, and this produces warnings,
so just remove it.
Task-number: QTBUG-20383
Change-Id: I27c4de2dc507eb2f29c17cdd92b973bdd8277918
Reviewed-by: Danny Pope <daniel.pope@nokia.com>
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quick3d/robo_bounce/qml/Calculator.qml | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/demos/quick3d/robo_bounce/qml/Calculator.qml b/demos/quick3d/robo_bounce/qml/Calculator.qml index 187fc69cc..39aacee5f 100644 --- a/demos/quick3d/robo_bounce/qml/Calculator.qml +++ b/demos/quick3d/robo_bounce/qml/Calculator.qml @@ -89,8 +89,6 @@ Rectangle { Item { id: main - state: "orientation " + runtime.orientation - width: parent.width; height: parent.height; anchors.centerIn: parent Column { @@ -156,31 +154,5 @@ Rectangle { } } } - - states: [ - State { - name: "orientation " + Orientation.Landscape - PropertyChanges { target: main; rotation: 90; width: window.height; height: window.width } - PropertyChanges { target: rotateButton; operation: rotateLeft } - }, - State { - name: "orientation " + Orientation.PortraitInverted - PropertyChanges { target: main; rotation: 180; } - PropertyChanges { target: rotateButton; operation: rotateRight } - }, - State { - name: "orientation " + Orientation.LandscapeInverted - PropertyChanges { target: main; rotation: 270; width: window.height; height: window.width } - PropertyChanges { target: rotateButton; operation: rotateLeft } - } - ] - - transitions: Transition { - SequentialAnimation { - PropertyAction { target: rotateButton; property: "operation" } - RotationAnimation { direction: RotationAnimation.Shortest; duration: 300; easing.type: Easing.InOutQuint } - NumberAnimation { properties: "x,y,width,height"; duration: 300; easing.type: Easing.InOutQuint } - } - } } } |