on xenial help sign in
fix orientation of mocksurfaces
a4a4a7cMichael Zanetti
tests/mocks/Unity/Application/MirSurfaceItem.qml+4−4
@@ -24,10 +24,10 @@ Rectangle {
24 implicitHeight: units.gu(70)
24 implicitHeight: units.gu(70)
25
25
26 rotation: {
26 rotation: {
27− if (orientation == Qt.PortraitOrientation) return 0;
27+ if (orientation == Qt.PortraitOrientation) return 90;
28− else if (orientation == Qt.LandscapeOrientation) return 90;
28+ else if (orientation == Qt.LandscapeOrientation) return 180;
29− else if (orientation == Qt.InvertedPortraitOrientation) return 180;
29+ else if (orientation == Qt.InvertedPortraitOrientation) return 270;
30− else return 270;
30+ else return 0;
31 }
31 }
32 x: parent ? (parent.width - width) / 2 : 0
32 x: parent ? (parent.width - width) / 2 : 0
33 y: parent ? (parent.height - height) / 2 : 0
33 y: parent ? (parent.height - height) / 2 : 0