summaryrefslogtreecommitdiffstats
path: root/examples/declarative/screenorientation/screenorientation.qml
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-01-17 19:33:29 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-20 16:53:10 +0100
commita0d27513f4eff3f76fd85e6442aca443b7c05a53 (patch)
tree2239ed849796744299fbe25ab3cc50c2867160e9 /examples/declarative/screenorientation/screenorientation.qml
parent9ba631edb469599d3973982f8d5d72a9ba059eab (diff)
whitespace fixes
remove trailing spaces & expand tabs Change-Id: Ia088c8cc8a83d068f6e2ec84903b5220cd3411f1 Reviewed-by: Alan Alpert <aalpert@blackberry.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'examples/declarative/screenorientation/screenorientation.qml')
-rw-r--r--examples/declarative/screenorientation/screenorientation.qml20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/declarative/screenorientation/screenorientation.qml b/examples/declarative/screenorientation/screenorientation.qml
index 1d749eea..458d8a29 100644
--- a/examples/declarative/screenorientation/screenorientation.qml
+++ b/examples/declarative/screenorientation/screenorientation.qml
@@ -44,7 +44,7 @@ import "Core/screenorientation.js" as ScreenOrientation
Rectangle {
id: window
- width: 360
+ width: 360
height: 640
color: "white"
@@ -57,7 +57,7 @@ Rectangle {
property bool inPortrait: (activeOrientation == Orientation.Portrait || activeOrientation == Orientation.PortraitInverted);
// rotation correction for landscape devices like N900
- property bool landscapeWindow: window.width > window.height
+ property bool landscapeWindow: window.width > window.height
property variant rotationDelta: landscapeWindow ? -90 : 0
rotation: rotationDelta
@@ -95,7 +95,7 @@ Rectangle {
Column {
width: centeredText.width
anchors.verticalCenter: parent.verticalCenter
- anchors.horizontalCenter: parent.horizontalCenter
+ anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenterOffset: 30
Text {
text: "Orientation"
@@ -157,7 +157,7 @@ Rectangle {
states: [
State {
name: "orientation " + Orientation.Landscape
- PropertyChanges {
+ PropertyChanges {
target: main
rotation: ScreenOrientation.getAngle(Orientation.Landscape)+rotationDelta
width: baseHeight
@@ -166,7 +166,7 @@ Rectangle {
},
State {
name: "orientation " + Orientation.PortraitInverted
- PropertyChanges {
+ PropertyChanges {
target: main
rotation: ScreenOrientation.getAngle(Orientation.PortraitInverted)+rotationDelta
width: baseWidth
@@ -175,7 +175,7 @@ Rectangle {
},
State {
name: "orientation " + Orientation.LandscapeInverted
- PropertyChanges {
+ PropertyChanges {
target: main
rotation: ScreenOrientation.getAngle(Orientation.LandscapeInverted)+rotationDelta
width: baseHeight
@@ -185,15 +185,15 @@ Rectangle {
]
transitions: Transition {
ParallelAnimation {
- RotationAnimation {
+ RotationAnimation {
direction: RotationAnimation.Shortest
duration: 300
- easing.type: Easing.InOutQuint
+ easing.type: Easing.InOutQuint
}
- NumberAnimation {
+ NumberAnimation {
properties: "x,y,width,height"
duration: 300
- easing.type: Easing.InOutQuint
+ easing.type: Easing.InOutQuint
}
}
}