on xenial help sign in
Merge tryWideView focus refactor from dandrader
commitb05142cb06d0a8b92612d1a7faf7607a12de7b40 authorMichael Terry <michael.terry@canonical.com> dateFri 8 Jul 2016, 09:25 (10 years ago) parent04507b7
1 file changed+2−4
tests/qmltests/Greeter/tst_WideView.qml+2−4
tests/qmltests/Greeter/tst_WideView.qml+2−4
@@ -26,6 +26,7 @@ StyledItem {
2626 id: root
2727 width: units.gu(120)
2828 height: units.gu(80)
29+ focus: true
2930
3031 theme.name: "Ubuntu.Components.Themes.SuruDark"
3132
@@ -41,6 +42,7 @@ StyledItem {
4142 id: loader
4243 width: root.width - controls.width
4344 height: parent.height
45+ focus: true
4446
4547 property bool itemDestroyed: false
4648 sourceComponent: Component {
@@ -58,10 +60,6 @@ StyledItem {
5860 locked: lockedCheckBox.checked
5961 inputMethod: fakeInputMethod
6062
61− Component.onCompleted: {
62− forceActiveFocus();
63− }
64−
6563 Component.onDestruction: {
6664 loader.itemDestroyed = true
6765 }