Tornare all'utente e alla password dedotti (0.24.8)
Il campo vuoto non cancella una password: accanto ai due campi SMTP c'e' ora un collegamento per tornare all'utente dedotto e alla password della posta.
This commit is contained in:
1 parent
02b0f3e90d
commit
906f9e1cff
4 files changed
+34
-3
No files matched your search
@@ -195,6 +195,20 @@ Page {
|
||||
onTextChanged: account.smtpUser = text.trim()
|
||||
}
|
||||
|
||||
Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
visible: account.smtpUser.length > 0
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: Theme.highlightColor
|
||||
text: qsTr("Torna all'utente dedotto")
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: account.smtpUser = ""
|
||||
}
|
||||
}
|
||||
|
||||
TextField {
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
@@ -205,6 +219,22 @@ Page {
|
||||
onTextChanged: if (text.length > 0) account.smtpPassword = text
|
||||
}
|
||||
|
||||
// Il campo vuoto non cancella (una password non si perde per un
|
||||
// tocco sbagliato): per tornare a quella della posta c'e' questo.
|
||||
Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
visible: account.smtpPassword.length > 0
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: Theme.highlightColor
|
||||
text: qsTr("Torna alla password della posta")
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: account.smtpPassword = ""
|
||||
}
|
||||
}
|
||||
|
||||
TextField {
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
Reference in new issue
Block a user