diff options
3 files changed, 11 insertions, 6 deletions
diff --git a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml index 309fa443..7468669c 100644 --- a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml +++ b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml | |||
@@ -23,7 +23,6 @@ import org.kube.framework 1.0 as Kube | |||
23 | import org.kube.accounts.kolabnow 1.0 as KolabnowAccount | 23 | import org.kube.accounts.kolabnow 1.0 as KolabnowAccount |
24 | 24 | ||
25 | Item { | 25 | Item { |
26 | |||
27 | property string accountId | 26 | property string accountId |
28 | property string heading: qsTr("Connect your Kolab Now account") | 27 | property string heading: qsTr("Connect your Kolab Now account") |
29 | property string subheadline: qsTr("Please fill in your name and email address.") | 28 | property string subheadline: qsTr("Please fill in your name and email address.") |
@@ -57,6 +56,7 @@ Item { | |||
57 | } | 56 | } |
58 | Kube.RequiredTextField { | 57 | Kube.RequiredTextField { |
59 | id: nameField | 58 | id: nameField |
59 | focus: true | ||
60 | Layout.fillWidth: true | 60 | Layout.fillWidth: true |
61 | placeholderText: qsTr("Your name") | 61 | placeholderText: qsTr("Your name") |
62 | text: kolabnowSettings.userName | 62 | text: kolabnowSettings.userName |
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index 56c975e5..394c3d32 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml | |||
@@ -44,12 +44,17 @@ Kube.Popup { | |||
44 | stack.push(mainView.createObject(app)) | 44 | stack.push(mainView.createObject(app)) |
45 | } | 45 | } |
46 | } | 46 | } |
47 | onCurrentItemChanged: { | ||
48 | if (!!currentItem) { | ||
49 | currentItem.forceActiveFocus() | ||
50 | } | ||
51 | } | ||
47 | } | 52 | } |
48 | 53 | ||
49 | Component { | 54 | Component { |
50 | id: mainView | 55 | id: mainView |
51 | 56 | ||
52 | Item { | 57 | FocusScope { |
53 | Kube.Heading { | 58 | Kube.Heading { |
54 | id: heading | 59 | id: heading |
55 | text: qsTr("Select your new account type") | 60 | text: qsTr("Select your new account type") |
@@ -67,9 +72,7 @@ Kube.Popup { | |||
67 | delegate: Kube.Button { | 72 | delegate: Kube.Button { |
68 | Layout.fillWidth: true | 73 | Layout.fillWidth: true |
69 | text: modelData | 74 | text: modelData |
70 | onClicked: { | 75 | onClicked: stack.push(wizardPage.createObject(app, {accountType:modelData})) |
71 | stack.push(wizardPage.createObject(app, {accountType:modelData})) | ||
72 | } | ||
73 | } | 76 | } |
74 | } | 77 | } |
75 | } | 78 | } |
@@ -79,6 +82,7 @@ Kube.Popup { | |||
79 | Component { | 82 | Component { |
80 | id: wizardPage | 83 | id: wizardPage |
81 | AccountWizardPage { | 84 | AccountWizardPage { |
85 | focus: true | ||
82 | requireSetup: root.requireSetup | 86 | requireSetup: root.requireSetup |
83 | onDone: { | 87 | onDone: { |
84 | root.close() | 88 | root.close() |
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml index f7885ce4..74decf1f 100644 --- a/components/accounts/contents/ui/AccountWizardPage.qml +++ b/components/accounts/contents/ui/AccountWizardPage.qml | |||
@@ -24,7 +24,7 @@ import QtQuick.Controls 2.0 as Controls2 | |||
24 | import org.kube.framework 1.0 as Kube | 24 | import org.kube.framework 1.0 as Kube |
25 | 25 | ||
26 | 26 | ||
27 | Item { | 27 | FocusScope { |
28 | id: root | 28 | id: root |
29 | property string accountType | 29 | property string accountType |
30 | signal done() | 30 | signal done() |
@@ -88,6 +88,7 @@ Item { | |||
88 | Loader { | 88 | Loader { |
89 | id: loader | 89 | id: loader |
90 | anchors.fill: parent | 90 | anchors.fill: parent |
91 | focus: true | ||
91 | source: accountFactory.uiPath | 92 | source: accountFactory.uiPath |
92 | } | 93 | } |
93 | } | 94 | } |