forked from Silverfish/proton-bridge
GODT-1851: Port field error label now wraps.
This commit is contained in:
@ -56,6 +56,7 @@ SettingsView {
|
|||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
label: qsTr("IMAP port")
|
label: qsTr("IMAP port")
|
||||||
Layout.preferredWidth: 160
|
Layout.preferredWidth: 160
|
||||||
|
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
|
||||||
validator: root.validate
|
validator: root.validate
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
@ -63,6 +64,7 @@ SettingsView {
|
|||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
label: qsTr("SMTP port")
|
label: qsTr("SMTP port")
|
||||||
Layout.preferredWidth: 160
|
Layout.preferredWidth: 160
|
||||||
|
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
|
||||||
validator: root.validate
|
validator: root.validate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,7 +88,7 @@ SettingsView {
|
|||||||
imapField.error = false
|
imapField.error = false
|
||||||
smtpField.error = false
|
smtpField.error = false
|
||||||
|
|
||||||
// checking errors seperatly because we want to display "same port" error only once
|
// checking errors separately because we want to display "same port" error only once
|
||||||
imapField.validate()
|
imapField.validate()
|
||||||
if (imapField.error) {
|
if (imapField.error) {
|
||||||
return
|
return
|
||||||
|
|||||||
@ -320,8 +320,8 @@ FocusScope {
|
|||||||
visible: root.error && (assistiveText.text.length > 0)
|
visible: root.error && (assistiveText.text.length > 0)
|
||||||
source: "../icons/ic-exclamation-circle-filled.svg"
|
source: "../icons/ic-exclamation-circle-filled.svg"
|
||||||
color: root.colorScheme.signal_danger
|
color: root.colorScheme.signal_danger
|
||||||
height: assistiveText.height
|
height: assistiveText.lineHeight
|
||||||
sourceSize.height: assistiveText.height
|
sourceSize.height: assistiveText.lineHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
Proton.Label {
|
Proton.Label {
|
||||||
@ -330,6 +330,7 @@ FocusScope {
|
|||||||
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
text: root.error ? root.errorString : root.assistiveText
|
text: root.error ? root.errorString : root.assistiveText
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user