summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-26 02:21:08 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-26 02:28:55 +0200
commit01d73dfe68a74dab3b506d31c9626e17d8e33f2e (patch)
treecf5f27d1dc26c385f104f0ca9d3bf8364790d779
parent85c2f6a51e3fbc2648bf03bccbc6e3192c154048 (diff)
downloadkube-01d73dfe68a74dab3b506d31c9626e17d8e33f2e.tar.gz
kube-01d73dfe68a74dab3b506d31c9626e17d8e33f2e.zip
A dedicated username field for imap.
-rw-r--r--accounts/imap/qml/AccountSettings.qml18
1 files changed, 15 insertions, 3 deletions
diff --git a/accounts/imap/qml/AccountSettings.qml b/accounts/imap/qml/AccountSettings.qml
index 72bcd507..33abb45c 100644
--- a/accounts/imap/qml/AccountSettings.qml
+++ b/accounts/imap/qml/AccountSettings.qml
@@ -73,12 +73,24 @@ Item {
73 text: imapSettings.emailAddress 73 text: imapSettings.emailAddress
74 onTextChanged: { 74 onTextChanged: {
75 imapSettings.emailAddress = text 75 imapSettings.emailAddress = text
76 imapSettings.imapUsername = text
77 imapSettings.smtpUsername = text
78 imapSettings.accountName = text 76 imapSettings.accountName = text
79 } 77 }
80 placeholderText: qsTr("Your email address") 78 placeholderText: qsTr("Your email address")
81 } 79 }
80 Kube.Label {
81 text: qsTr("Username")
82 Layout.alignment: Qt.AlignRight
83 }
84 Kube.RequiredTextField {
85 Layout.fillWidth: true
86
87 text: imapSettings.imapUsername
88 onTextChanged: {
89 imapSettings.imapUsername = text
90 imapSettings.smtpUsername = text
91 }
92 placeholderText: qsTr("Your username for IMAP and SMTP access.")
93 }
82 94
83 Kube.Label { 95 Kube.Label {
84 text: qsTr("IMAP server address") 96 text: qsTr("IMAP server address")
@@ -105,7 +117,7 @@ Item {
105 id: smtpServer 117 id: smtpServer
106 Layout.fillWidth: true 118 Layout.fillWidth: true
107 119
108 placeholderText: "smtps://mainserver.example.net:993" 120 placeholderText: "smtps://mainserver.example.net:587"
109 text: imapSettings.smtpServer 121 text: imapSettings.smtpServer
110 onTextChanged: { 122 onTextChanged: {
111 imapSettings.smtpServer = text 123 imapSettings.smtpServer = text