@@ -42,7 +42,7 @@ FocusScope {
4242 property alias application: appWindow.application
4343 property int shellOrientationAngle
4444 property int shellOrientation
45− property string deviceSpecificOrientationOverrides
45+ property QtObject deviceSpecificOrientationOverrides
4646 property int shellPrimaryOrientation
4747 property int nativeOrientation
4848
@@ -140,6 +140,7 @@ FocusScope {
140140 return angle % 360;
141141 }
142142
143+ property alias overrides: root.deviceSpecificOrientationOverrides
143144 states: [
144145 // Sets the initial orientationAngle of the window, when it first slides into view
145146 // (with the splash screen likely being displayed). At that point we just try to
@@ -164,18 +165,20 @@ FocusScope {
164165 // If it doesn't support shell's current orientation
165166 // then simply pick some arbitraty one that it does support
166167 var chosenOrientation = 0;
167−
168− console.log("JOSH: SPREAD DELEGATE: " + root.deviceSpecificOrientationOverrides);
169168 if (supportedOrientations & root.shellOrientation) {
170169 chosenOrientation = root.shellOrientation;
171170 } else if (supportedOrientations & Qt.PortraitOrientation) {
172− chosenOrientation = Qt.PortraitOrientation;
171+ chosenOrientation = overrides ?
172+ overrides.portraitOrientation : Qt.PortraitOrientation;
173173 } else if (supportedOrientations & Qt.LandscapeOrientation) {
174− chosenOrientation = Qt.LandscapeOrientation;
174+ chosenOrientation = overrides ?
175+ overrides.landscapeOrientation : Qt.LandscapeOrientation;
175176 } else if (supportedOrientations & Qt.InvertedPortraitOrientation) {
176− chosenOrientation = Qt.InvertedPortraitOrientation;
177+ chosenOrientation = overrides ?
178+ overrides.invertedPortraitOrientation : Qt.InvertedPortraitOrientation;
177179 } else if (supportedOrientations & Qt.InvertedLandscapeOrientation) {
178− chosenOrientation = Qt.InvertedLandscapeOrientation;
180+ chosenOrientation = overrides ?
181+ overrides.invertedLandscapeOrientation : Qt.InvertedLandscapeOrientation;
179182 } else {
180183 chosenOrientation = root.shellPrimaryOrientation;
181184 }