added local port field to v2ray settings page
- some code style refactoring
This commit is contained in:
parent
2b0ba2aff9
commit
36fae9152f
10 changed files with 88 additions and 65 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue