@@ -137,62 +137,66 @@ Rectangle {
140− Rectangle {
140+ Flickable {
141 id: controls
141 id: controls
142− color: "darkgrey"
142+ contentHeight: controlRect.height
143− width: units.gu(30)
143+
144 anchors.top: root.top
144 anchors.top: root.top
145 anchors.bottom: root.bottom
145 anchors.bottom: root.bottom
146 anchors.right: root.right
146 anchors.right: root.right
151+ anchors { left: parent.left; right: parent.right }
153+ height: childrenRect.height + units.gu(2)
156+ anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
157+ spacing: units.gu(1)
160+ text: "Show Greeter"
161+ activeFocusOnPress: false
163+ if (shellLoader.status !== Loader.Ready)
149− anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
150− spacing: units.gu(1)
152− text: "Show Greeter"
153− activeFocusOnPress: false
155− if (shellLoader.status !== Loader.Ready)
158− var greeter = testCase.findChild(shellLoader.item, "greeter");
166+ var greeter = testCase.findChild(shellLoader.item, "greeter");
159− if (!greeter.shown) {
167+ if (!greeter.shown) {
160− LightDM.Greeter.showGreeter();
168+ LightDM.Greeter.showGreeter();
164− ListItem.ItemSelector {
172+ ListItem.ItemSelector {
165− anchors { left: parent.left; right: parent.right }
173+ anchors { left: parent.left; right: parent.right }
166− activeFocusOnPress: false
174+ activeFocusOnPress: false
167− text: "LightDM mock mode"
175+ text: "LightDM mock mode"
168− model: ["single", "single-passphrase", "single-pin", "full"]
176+ model: ["single", "single-passphrase", "single-pin", "full"]
169− onSelectedIndexChanged: {
177+ onSelectedIndexChanged: {
170− shellLoader.active = false;
178+ shellLoader.active = false;
171− LightDM.Greeter.mockMode = model[selectedIndex];
179+ LightDM.Greeter.mockMode = model[selectedIndex];
172− LightDM.Users.mockMode = model[selectedIndex];
180+ LightDM.Users.mockMode = model[selectedIndex];
173− shellLoader.active = true;
181+ shellLoader.active = true;
176− ListItem.ItemSelector {
184+ ListItem.ItemSelector {
177− anchors { left: parent.left; right: parent.right }
185+ anchors { left: parent.left; right: parent.right }
178− activeFocusOnPress: false
186+ activeFocusOnPress: false
179− text: "Size"
187+ text: "Size"
180− model: ["phone", "tablet", "desktop"]
188+ model: ["phone", "tablet", "desktop"]
181− onSelectedIndexChanged: {
189+ onSelectedIndexChanged: {
182− shellLoader.active = false;
190+ shellLoader.active = false;
183− shellLoader.state = model[selectedIndex];
191+ shellLoader.state = model[selectedIndex];
184− shellLoader.active = true;
192+ shellLoader.active = true;
195+ MouseTouchEmulationCheckbox {
187− MouseTouchEmulationCheckbox {
194− anchors { left: parent.left; right: parent.right }
195− spacing: units.gu(1)
197 Label { text: "Applications"; font.bold: true }
201 Label { text: "Applications"; font.bold: true }
@@ -281,7 +285,6 @@ Rectangle {
283 function cleanup() {
287 function cleanup() {
284− mouseEmulation.checked = true;
285 tryCompare(shell, "enabled", true); // make sure greeter didn't leave us in disabled state
288 tryCompare(shell, "enabled", true); // make sure greeter didn't leave us in disabled state
286 tearDown();
289 tearDown();