@@ -111,11 +111,18 @@ FocusScope {
111111 readonly property int rotationAngle: applicationWindow.application &&
112112 applicationWindow.application.rotatesWindowContents
113113 ? ((360 - applicationWindow.surfaceOrientationAngle) % 360) : 0
114− readonly property real rotationOrigin: rotationAngle == 90 ? applicationWindow.height / 2
115− : rotationAngle == 270 ? applicationWindow.width / 2
116− : 0
117− origin.x: rotationOrigin
118− origin.y: rotationOrigin
114+ origin.x: {
115+ if (rotationAngle == 90) return applicationWindow.height / 2;
116+ else if (rotationAngle == 270) return applicationWindow.width / 2;
117+ else if (rotationAngle == 180) return applicationWindow.width / 2;
118+ else return 0;
119+ }
120+ origin.y: {
121+ if (rotationAngle == 90) return applicationWindow.height / 2;
122+ else if (rotationAngle == 270) return applicationWindow.width / 2;
123+ else if (rotationAngle == 180) return applicationWindow.height / 2;
124+ else return 0;
125+ }
119126 angle: rotationAngle
120127 }
121128 }