diff options
-rw-r--r-- | accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml | 6 | ||||
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 5 | ||||
-rw-r--r-- | framework/qml/EditAccount.qml | 23 | ||||
-rw-r--r-- | framework/qml/Messages.qml | 2 |
4 files changed, 17 insertions, 19 deletions
diff --git a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml index 7468669c..01dd3db6 100644 --- a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml +++ b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml | |||
@@ -27,6 +27,7 @@ Item { | |||
27 | property string heading: qsTr("Connect your Kolab Now account") | 27 | property string heading: qsTr("Connect your Kolab Now account") |
28 | 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.") |
29 | property bool valid: nameField.acceptableInput && emailField.acceptableInput | 29 | property bool valid: nameField.acceptableInput && emailField.acceptableInput |
30 | implicitHeight: grid.implicitHeight | ||
30 | 31 | ||
31 | KolabnowAccount.KolabnowSettings { | 32 | KolabnowAccount.KolabnowSettings { |
32 | id: kolabnowSettings | 33 | id: kolabnowSettings |
@@ -43,9 +44,8 @@ Item { | |||
43 | } | 44 | } |
44 | 45 | ||
45 | GridLayout { | 46 | GridLayout { |
46 | anchors { | 47 | id: grid |
47 | fill: parent | 48 | anchors.fill: parent |
48 | } | ||
49 | columns: 2 | 49 | columns: 2 |
50 | columnSpacing: Kube.Units.largeSpacing | 50 | columnSpacing: Kube.Units.largeSpacing |
51 | rowSpacing: Kube.Units.largeSpacing | 51 | rowSpacing: Kube.Units.largeSpacing |
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 846e5ff2..2d84f1da 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -101,6 +101,11 @@ Controls2.ApplicationWindow { | |||
101 | onMessageReceived: kubeViews.openComposer(true, message.recipients) | 101 | onMessageReceived: kubeViews.openComposer(true, message.recipients) |
102 | } | 102 | } |
103 | 103 | ||
104 | Kube.Listener { | ||
105 | filter: Kube.Messages.requestLogin | ||
106 | onMessageReceived: kubeViews.setLoginView() | ||
107 | } | ||
108 | |||
104 | //BEGIN Shortcuts | 109 | //BEGIN Shortcuts |
105 | Shortcut { | 110 | Shortcut { |
106 | sequence: StandardKey.Quit | 111 | sequence: StandardKey.Quit |
diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml index 85df955b..df567e5a 100644 --- a/framework/qml/EditAccount.qml +++ b/framework/qml/EditAccount.qml | |||
@@ -59,36 +59,29 @@ Item { | |||
59 | wrapMode: Text.Wrap | 59 | wrapMode: Text.Wrap |
60 | } | 60 | } |
61 | 61 | ||
62 | Item { | 62 | Column { |
63 | id: accountEdit | ||
64 | anchors { | 63 | anchors { |
65 | top:subHeadline.bottom | 64 | top: subHeadline.bottom |
66 | left: parent.left | 65 | left: parent.left |
67 | right: parent.right | 66 | right: parent.right |
68 | bottom: footer.top | 67 | bottom: footer.top |
69 | topMargin: Kube.Units.largeSpacing * 2 | 68 | topMargin: Kube.Units.largeSpacing * 2 |
70 | } | 69 | } |
71 | 70 | spacing: Kube.Units.largeSpacing | |
72 | Loader { | 71 | Loader { |
73 | id: loader | 72 | id: loader |
74 | anchors { | 73 | anchors { |
75 | top: parent.top | ||
76 | left: parent.left | 74 | left: parent.left |
77 | right: parent.right | 75 | right: parent.right |
78 | } | 76 | } |
79 | //The initial size is somehow necessary so the loader is properly anchored | 77 | height: item ? item.implicitHeight : 0 |
80 | height: 10 | ||
81 | source: accountFactory.uiPath | 78 | source: accountFactory.uiPath |
82 | onLoaded: item.accountId = root.accountId | 79 | onLoaded: item.accountId = root.accountId |
83 | } | 80 | } |
84 | Item { | 81 | Kube.Button { |
85 | id: spacer | 82 | anchors.right: parent.right |
86 | anchors { | 83 | text: qsTr("Change Password") |
87 | top: loader.bottom | 84 | onClicked: Kube.Fabric.postMessage(Kube.Messages.requestLogin, {}) |
88 | left: parent.left | ||
89 | right: parent.right | ||
90 | bottom: parent.bottom | ||
91 | } | ||
92 | } | 85 | } |
93 | } | 86 | } |
94 | 87 | ||
diff --git a/framework/qml/Messages.qml b/framework/qml/Messages.qml index 8d10bc3b..7e415c34 100644 --- a/framework/qml/Messages.qml +++ b/framework/qml/Messages.qml | |||
@@ -34,8 +34,8 @@ Item { | |||
34 | property string toggleImportant: "toggleImportant" | 34 | property string toggleImportant: "toggleImportant" |
35 | property string moveToFolder: "moveToFolder" | 35 | property string moveToFolder: "moveToFolder" |
36 | property string moveToDrafts: "moveToDrafts" | 36 | property string moveToDrafts: "moveToDrafts" |
37 | property string credentials: "credentials" | ||
38 | property string unlockKeyring: "unlockKeyring" | 37 | property string unlockKeyring: "unlockKeyring" |
38 | property string requestLogin: "requestLogin" | ||
39 | 39 | ||
40 | property string notification: "notification" | 40 | property string notification: "notification" |
41 | property string progressNotification: "progressNotification" | 41 | property string progressNotification: "progressNotification" |