@@ -39,8 +39,8 @@ FocusScope {
3939 property int orientationAngle
4040
4141 property int supportedScreenOrientations: {
42− if (stages.shown && SurfaceManager.topmostSurface) {
43− return SurfaceManager.topmostSurface.application.supportedOrientations;
42+ if (stages.shown && ApplicationManager.topmostApplication) {
43+ return ApplicationManager.topmostApplication.supportedOrientations;
4444 } else {
4545 return Qt.PortraitOrientation
4646 | Qt.InvertedPortraitOrientation