@@ -37,24 +37,26 @@ Rectangle {
37 name: applicationArguments.deviceName
37 name: applicationArguments.deviceName
40− property alias orientations: orientations_
40+ property alias orientations: d.orientations
43− // NB: native and primary orientations here don't map exactly to their QScreen counterparts
44− native_: root.width > root.height ? Qt.LandscapeOrientation : Qt.PortraitOrientation
46− primary: deviceConfiguration.primaryOrientation == deviceConfiguration.useNativeOrientation
42+ Item {
47− ? native_ : deviceConfiguration.primaryOrientation
43+ id: d
49− landscape: deviceConfiguration.landscapeOrientation
50− invertedLandscape: deviceConfiguration.invertedLandscapeOrientation
51− portrait: deviceConfiguration.portraitOrientation
52− invertedPortrait: deviceConfiguration.invertedPortraitOrientation
45+ property Orientations orientations: Orientations {
47+ // NB: native and primary orientations here don't map exactly to their QScreen counterparts
48+ native_: root.width > root.height ? Qt.LandscapeOrientation : Qt.PortraitOrientation
50+ primary: deviceConfiguration.primaryOrientation == deviceConfiguration.useNativeOrientation
51+ ? native_ : deviceConfiguration.primaryOrientation
53+ landscape: deviceConfiguration.landscapeOrientation
54+ invertedLandscape: deviceConfiguration.invertedLandscapeOrientation
55+ portrait: deviceConfiguration.portraitOrientation
56+ invertedPortrait: deviceConfiguration.invertedPortraitOrientation
57− // to be overwritten by tests
59+ // to be overwritten by tests
58 property var unity8Settings: Unity8Settings {}
60 property var unity8Settings: Unity8Settings {}
59 property var oskSettings: GSettings { schema.id: "com.canonical.keyboard.maliit" }
61 property var oskSettings: GSettings { schema.id: "com.canonical.keyboard.maliit" }