@@ -17,16 +17,16 @@
17import QtQuick 2.4
17import QtQuick 2.4
19ScriptAction {
19ScriptAction {
21 property var shell
20 property var shell
21+ property int rotationAngle
24− shell.orientationAngle = info.requestedOrientationAngle;
24+ shell.orientationAngle = rotationAngle;
25− shell.transformRotationAngle = info.requestedOrientationAngle;
25+ shell.transformRotationAngle = rotationAngle;
27 // They must all be bindings as orientedShell's size can change
27 // They must all be bindings as orientedShell's size can change
29− if (info.requestedOrientationAngle === 90 || info.requestedOrientationAngle === 270) {
29+ if (rotationAngle === 90 || rotationAngle === 270) {
30 shell.width = Qt.binding(function() { return orientedShell.height; });
30 shell.width = Qt.binding(function() { return orientedShell.height; });
31 shell.height = Qt.binding(function() { return orientedShell.width; });
31 shell.height = Qt.binding(function() { return orientedShell.width; });