Use inputMethodHints, correct label text

This commit is contained in:
Gary Wang
2022-11-17 12:34:43 +08:00
committed by Carl Schwan
parent e608e63d1c
commit bd236e89a3

View File

@@ -63,7 +63,7 @@ Kirigami.ScrollablePage {
id: hostField
label: i18n("Host")
text: Config.proxyHost
// inputMethodHints: Qt.ImhUrlCharactersOnly
inputMethodHints: Qt.ImhUrlCharactersOnly
onEditingFinished: {
proxyConfigChanged = true
}
@@ -73,12 +73,11 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
contentItem: RowLayout {
QQC2.Label {
text: i18n("Peeker width")
text: i18n("Port")
Layout.fillWidth: true
}
QQC2.SpinBox {
id: portField
Kirigami.FormData.label: i18n("Proxy Port")
value: Config.proxyPort
from: 0
to: 65536