@@ -56,6 +56,30 @@ AbstractStage {
57 orientationChangesEnabled: true
57 orientationChangesEnabled: true
59+ supportedOrientations: {
63+ return mainApp.supportedOrientations;
64+ case "stagedWithSideStage":
65+ var orientations = mainApp.supportedOrientations;
66+ orientations |= Qt.LandscapeOrientation | Qt.InvertedLandscapeOrientation;
67+ if (priv.sideStageItemId && !spreadView.surfaceDragging) {
68+ // If we have a sidestage app, support Portrait orientation
69+ // so that it will switch the sidestage app to mainstage on rotate to portrait
70+ orientations |= Qt.PortraitOrientation|Qt.InvertedPortraitOrientation;
76+ return Qt.PortraitOrientation |
77+ Qt.LandscapeOrientation |
78+ Qt.InvertedPortraitOrientation |
79+ Qt.InvertedLandscapeOrientation;
59 onAltTabPressedChanged: priv.goneToSpread = altTabPressed
83 onAltTabPressedChanged: priv.goneToSpread = altTabPressed
61 GlobalShortcut {
85 GlobalShortcut {