on xenial help sign in
Use ApplicationManager.topmostApplication instead of SurfaceManager.topmostSurface
7038057Daniel d'Andrada
qml/Shell.qml+2−2
@@ -39,8 +39,8 @@ FocusScope {
39 property int orientationAngle
39 property int orientationAngle
40
40
41 property int supportedScreenOrientations: {
41 property int supportedScreenOrientations: {
42− if (stages.shown && SurfaceManager.topmostSurface) {
42+ if (stages.shown && ApplicationManager.topmostApplication) {
43− return SurfaceManager.topmostSurface.application.supportedOrientations;
43+ return ApplicationManager.topmostApplication.supportedOrientations;
44 } else {
44 } else {
45 return Qt.PortraitOrientation
45 return Qt.PortraitOrientation
46 | Qt.InvertedPortraitOrientation
46 | Qt.InvertedPortraitOrientation