diff options
author | Sarah Smith <sarah.j.smith@nokia.com> | 2012-03-30 14:22:36 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-30 06:28:25 +0200 |
commit | 1e0d1422954e5cb1a58be1a6702d563f561e27d9 (patch) | |
tree | 125cf7cc86fef25c917db06bf0783654a7827044 | |
parent | c7ca3384fcff8d7ee1dcf332a468b4774c5cac23 (diff) |
Remove orientation code.
This code does not work unless the launcher provides the runtime object
and our launcher does not. It is very platform dependent also, so there
is no point in having it.
Now we get no warnings when running the app.
Task-number: QTBUG-20383
Change-Id: Ia0adc019eafa7662049cc919faed0cce8863774d
Reviewed-by: Danny Pope <daniel.pope@nokia.com>
-rw-r--r-- | demos/quick3d/robo_bounce/qml/Calculator/Calculator.qml | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/demos/quick3d/robo_bounce/qml/Calculator/Calculator.qml b/demos/quick3d/robo_bounce/qml/Calculator/Calculator.qml index fab685e4f..96993b7cb 100644 --- a/demos/quick3d/robo_bounce/qml/Calculator/Calculator.qml +++ b/demos/quick3d/robo_bounce/qml/Calculator/Calculator.qml @@ -90,8 +90,6 @@ Rectangle { Item { id: main - state: "orientation " + runtime.orientation - width: parent.width; height: parent.height; anchors.centerIn: parent Column { @@ -157,31 +155,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 } - } - } } } |