@@ -37,37 +37,17 @@ import Unity.Session 0.1
37FocusScope {
37FocusScope {
40− property int supportedScreenOrientations: {
40+ // this is only here to select the width / height of the window if not running fullscreen
41− // check device name and fix orientation if necessary
41+ property bool tablet: false
42− var deviceOrientations;
42+ width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
43− if (applicationArguments.device() === "flo") {
43+ height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
44− deviceOrientations = Qt.InvertedLandscapeOrientation;
45− } else if (applicationArguments.device() === "manta") {
46− deviceOrientations = Qt.LandscapeOrientation;
47− } else if (applicationArguments.device() === "mako") {
48− deviceOrientations = Qt.PortraitOrientation
49− | Qt.InvertedPortraitOrientation
50− | Qt.LandscapeOrientation
51− | Qt.InvertedLandscapeOrientation;
54− if (stages.shown && ApplicationManager.topmostApplication) {
55− return deviceOrientations & ApplicationManager.topmostApplication.supportedOrientations;
57− return deviceOrientations;
60− property bool dashShown: dash.shown && dash.available && underlay.visible
62 property real edgeSize: units.gu(2)
45 property real edgeSize: units.gu(2)
63 property url defaultBackground: Qt.resolvedUrl(shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg")
46 property url defaultBackground: Qt.resolvedUrl(shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg")
64 property url background
47 property url background
65 readonly property real panelHeight: panel.panelHeight
48 readonly property real panelHeight: panel.panelHeight
67− // this is only here to select the width / height of the window if not running fullscreen
50+ property bool dashShown: dash.shown && dash.available && underlay.visible
68− property bool tablet: false
69− width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
70− height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
72 property bool sideStageEnabled: shell.width >= units.gu(100)
52 property bool sideStageEnabled: shell.width >= units.gu(100)