From 01d73dfe68a74dab3b506d31c9626e17d8e33f2e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 26 Jul 2018 02:21:08 +0200 Subject: A dedicated username field for imap. --- accounts/imap/qml/AccountSettings.qml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'accounts/imap/qml/AccountSettings.qml') 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 { text: imapSettings.emailAddress onTextChanged: { imapSettings.emailAddress = text - imapSettings.imapUsername = text - imapSettings.smtpUsername = text imapSettings.accountName = text } placeholderText: qsTr("Your email address") } + Kube.Label { + text: qsTr("Username") + Layout.alignment: Qt.AlignRight + } + Kube.RequiredTextField { + Layout.fillWidth: true + + text: imapSettings.imapUsername + onTextChanged: { + imapSettings.imapUsername = text + imapSettings.smtpUsername = text + } + placeholderText: qsTr("Your username for IMAP and SMTP access.") + } Kube.Label { text: qsTr("IMAP server address") @@ -105,7 +117,7 @@ Item { id: smtpServer Layout.fillWidth: true - placeholderText: "smtps://mainserver.example.net:993" + placeholderText: "smtps://mainserver.example.net:587" text: imapSettings.smtpServer onTextChanged: { imapSettings.smtpServer = text -- cgit v1.2.3