on xenial help sign in
fix orientation of mocksurfaces
commita4a4a7c8f61c396b19dc376e51e2d2077d2c6391 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 19 Mar 2015, 15:11 (12 years ago) parent7012206
1 file changed+4−4
tests/mocks/Unity/Application/MirSurfaceItem.qml+4−4
tests/mocks/Unity/Application/MirSurfaceItem.qml+4−4
@@ -24,10 +24,10 @@ Rectangle {
2424 implicitHeight: units.gu(70)
2525
2626 rotation: {
27− if (orientation == Qt.PortraitOrientation) return 0;
28− else if (orientation == Qt.LandscapeOrientation) return 90;
29− else if (orientation == Qt.InvertedPortraitOrientation) return 180;
30− else return 270;
27+ if (orientation == Qt.PortraitOrientation) return 90;
28+ else if (orientation == Qt.LandscapeOrientation) return 180;
29+ else if (orientation == Qt.InvertedPortraitOrientation) return 270;
30+ else return 0;
3131 }
3232 x: parent ? (parent.width - width) / 2 : 0
3333 y: parent ? (parent.height - height) / 2 : 0