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