@@ -362,7 +362,11 @@ AbstractStage {
364 Component.onCompleted: {
364 Component.onCompleted: {
365+ if (application && application.rotatesWindowContents) {
365− decoratedWindow.surfaceOrientationAngle = shellOrientationAngle;
366+ decoratedWindow.surfaceOrientationAngle = shellOrientationAngle;
368+ decoratedWindow.surfaceOrientationAngle = 0;
367 // NB: We're differentiating if this delegate was created in response to a new entry in the model
371 // NB: We're differentiating if this delegate was created in response to a new entry in the model
368 // or if the Repeater is just populating itself with delegates to match the model it received.
372 // or if the Repeater is just populating itself with delegates to match the model it received.