@@ -53,20 +53,15 @@ Rectangle {
53 orientation: Qt.PortraitOrientation
53 orientation: Qt.PortraitOrientation
56− FocusScope {
56+ Loader {
57− id: appFocus
57+ id: applicationWindowLoader
59 top: parent.top
59 top: parent.top
60 bottom: parent.bottom
60 bottom: parent.bottom
61 left: parent.left
61 left: parent.left
63 width: units.gu(40)
63 width: units.gu(40)
66− id: applicationWindowLoader
68− sourceComponent: applicationWindowComponent
64+ sourceComponent: applicationWindowComponent
72 Rectangle {
67 Rectangle {
@@ -74,7 +69,7 @@ Rectangle {
75 top: parent.top
70 top: parent.top
76 bottom: parent.bottom
71 bottom: parent.bottom
77− left: appFocus.right
72+ left: applicationWindowLoader.right
78 right: parent.right
73 right: parent.right
@@ -403,15 +398,19 @@ Rectangle {
403 verify(stateGroup.state === "void");
398 verify(stateGroup.state === "void");
406− // should be forcing active focus when interactive changes,
407− // which will cause a FocusScope higher in the object hierarchy tp be given the focus
408 function test_forceActiveFocusFollowsInterative() {
401 function test_forceActiveFocusFollowsInterative() {
409 fakeApplication.createSession();
402 fakeApplication.createSession();
410 applicationWindowLoader.item.interactive = false;
403 applicationWindowLoader.item.interactive = false;
411 applicationWindowLoader.item.interactive = true;
404 applicationWindowLoader.item.interactive = true;
412 fakeSession.createSurface();
405 fakeSession.createSurface();
414− compare(appFocus.focus, true);
407+ compare(fakeSession.surface.activeFocus, true);
409+ applicationWindowLoader.item.interactive = false;
410+ compare(fakeSession.surface.activeFocus, false);
412+ applicationWindowLoader.item.interactive = true;
413+ compare(fakeSession.surface.activeFocus, true);