@@ -61,6 +61,10 @@ Rectangle {
62 anchors.centerIn: parent
62 anchors.centerIn: parent
64+ property int shellOrientation: Qt.PortraitOrientation
65+ property int nativeOrientation: Qt.PortraitOrientation
66+ property int primaryOrientation: Qt.PortraitOrientation
64 state: "phone"
68 state: "phone"
@@ -77,6 +81,9 @@ Rectangle {
77 target: shellLoader
81 target: shellLoader
78 width: units.gu(100)
82 width: units.gu(100)
79 height: units.gu(71)
83 height: units.gu(71)
84+ shellOrientation: Qt.LandscapeOrientation
85+ nativeOrientation: Qt.LandscapeOrientation
86+ primaryOrientation: Qt.LandscapeOrientation
@@ -99,8 +106,13 @@ Rectangle {
100 id: __shell
107 id: __shell
101 usageScenario: usageScenarioSelector.model[usageScenarioSelector.selectedIndex]
108 usageScenario: usageScenarioSelector.model[usageScenarioSelector.selectedIndex]
102− orientation: Qt.PortraitOrientation
109+ nativeWidth: width
110+ nativeHeight: height
111+ orientation: shellLoader.shellOrientation
103− orientations: Orientations{} // Defaults are fine for testing
112+ orientations: Orientations {
113+ native_: shellLoader.nativeOrientation
114+ primary: shellLoader.primaryOrientation
104 Component.onDestruction: {
116 Component.onDestruction: {
105 shellLoader.itemDestroyed = true;
117 shellLoader.itemDestroyed = true;