~mterry/+junk/u8

« back to all changes in this revision

Viewing changes to qml/OrientedShell.qml

Don't rotate when on external monitor

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    }
90
90
 
91
91
    readonly property int supportedOrientations: shell.supportedOrientations
92
 
                                               & deviceConfiguration.supportedOrientations
 
92
        & (deviceConfiguration.supportedOrientations == deviceConfiguration.useNativeOrientation
 
93
                ? nativeOrientation
 
94
                : deviceConfiguration.supportedOrientations)
 
95
 
93
96
    property int acceptedOrientationAngle: {
94
97
        if (orientation & supportedOrientations) {
95
98
            return Screen.angleBetween(nativeOrientation, orientation);