added local port field to v2ray settings page

- some code style refactoring
This commit is contained in:
vladimir.kuznetsov 2023-02-14 08:35:03 +03:00
parent 2b0ba2aff9
commit 36fae9152f
10 changed files with 88 additions and 65 deletions

View file

@ -43,11 +43,31 @@ PageProtocolBase {
TextFieldType {
Layout.fillWidth: true
height: 31
text: logic.lineEditPortText
text: logic.lineEditServerPortText
onEditingFinished: {
logic.lineEditPortText = text
logic.lineEditServerPortText = text
}
enabled: logic.lineEditPortEnabled
enabled: logic.lineEditServerPortEnabled
}
}
RowLayout {
Layout.fillWidth: true
LabelType {
Layout.preferredWidth: 0.3 * root.width - 10
height: 31
text: qsTr("Local port")
}
TextFieldType {
Layout.fillWidth: true
height: 31
text: logic.lineEditLocalPortText
onEditingFinished: {
logic.lineEditLocalPortText = text
}
enabled: logic.lineEditLocalPortEnabled
}
}