@@ -107,6 +107,7 @@ Rectangle {
107 sourceComponent: Component {
107 sourceComponent: Component {
109 id: __shell
109 id: __shell
110 usageScenario: usageScenarioSelector.model[usageScenarioSelector.selectedIndex]
111 usageScenario: usageScenarioSelector.model[usageScenarioSelector.selectedIndex]
111 nativeWidth: width
112 nativeWidth: width
112 nativeHeight: height
113 nativeHeight: height
@@ -183,22 +184,44 @@ Rectangle {
183 callManager.foregroundCall = callManager.foregroundCall ? null : phoneCall;
184 callManager.foregroundCall = callManager.foregroundCall ? null : phoneCall;
187− Button {
187+ Button {
188− text: "Show Launcher"
188+ text: "Show Launcher"
189− activeFocusOnPress: false
189+ activeFocusOnPress: false
190− onClicked: {
190+ onClicked: {
191− if (shellLoader.status !== Loader.Ready)
191+ if (shellLoader.status !== Loader.Ready)
194− var launcher = testCase.findChild(shellLoader.item, "launcher");
194+ var launcher = testCase.findChild(shellLoader.item, "launcher");
195− launcher.state = "visible";
195+ launcher.state = "visible";
199+ text: "Print focused"
200+ activeFocusOnPress: false
202+ var childs = new Array(0);
203+ childs.push(shellLoader.item)
204+ while (childs.length > 0) {
205+ if (childs[0].activeFocus && childs[0].focus && childs[0].objectName != "shell") {
206+ print("Active focus is on item:", childs[0]);
209+ for (var i in childs[0].children) {
210+ childs.push(childs[0].children[i])
212+ childs.splice(0, 1);
214+ print("No active focused item found within shell.")
219+ text: "LightDM mock mode"
198 ListItem.ItemSelector {
222 ListItem.ItemSelector {
199 anchors { left: parent.left; right: parent.right }
223 anchors { left: parent.left; right: parent.right }
200 activeFocusOnPress: false
224 activeFocusOnPress: false
201− text: "LightDM mock mode"
202 model: ["single", "single-passphrase", "single-pin", "full"]
225 model: ["single", "single-passphrase", "single-pin", "full"]
203 onSelectedIndexChanged: {
226 onSelectedIndexChanged: {
204 shellLoader.active = false;
227 shellLoader.active = false;
@@ -207,11 +230,14 @@ Rectangle {
207 shellLoader.active = true;
230 shellLoader.active = true;
210 ListItem.ItemSelector {
237 ListItem.ItemSelector {
211 id: sizeSelector
238 id: sizeSelector
212 anchors { left: parent.left; right: parent.right }
239 anchors { left: parent.left; right: parent.right }
213 activeFocusOnPress: false
240 activeFocusOnPress: false
215 model: ["phone", "tablet", "desktop"]
241 model: ["phone", "tablet", "desktop"]
216 onSelectedIndexChanged: {
242 onSelectedIndexChanged: {
217// shellLoader.active = false;
243// shellLoader.active = false;
@@ -219,22 +245,28 @@ Rectangle {
219// shellLoader.active = true;
245// shellLoader.active = true;
249+ text: "Usage scenario"
222 ListItem.ItemSelector {
252 ListItem.ItemSelector {
223 id: usageScenarioSelector
253 id: usageScenarioSelector
224 anchors { left: parent.left; right: parent.right }
254 anchors { left: parent.left; right: parent.right }
225 activeFocusOnPress: false
255 activeFocusOnPress: false
226− text: "Usage scenario"
227 model: ["phone", "tablet", "desktop"]
256 model: ["phone", "tablet", "desktop"]
229 MouseTouchEmulationCheckbox {
258 MouseTouchEmulationCheckbox {
230 id: mouseEmulation
259 id: mouseEmulation
231 checked: true
260 checked: true
233 ListItem.ItemSelector {
266 ListItem.ItemSelector {
234 id: ctrlModifier
267 id: ctrlModifier
235 anchors { left: parent.left; right: parent.right }
268 anchors { left: parent.left; right: parent.right }
236 activeFocusOnPress: false
269 activeFocusOnPress: false
238 model: ["Ctrl", "Alt", "Super"]
270 model: ["Ctrl", "Alt", "Super"]
239 onSelectedIndexChanged: {
271 onSelectedIndexChanged: {
240 var keyMapper = testCase.findChild(shellContainer, "physicalKeysMapper");
272 var keyMapper = testCase.findChild(shellContainer, "physicalKeysMapper");