mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 22:28:08 +00:00
feat(ui/views/App/Settings/SettingsNetwork): view in progress
This commit is contained in:
parent
fca682a16b
commit
452bab8a47
4 changed files with 126 additions and 2 deletions
|
|
@ -579,6 +579,34 @@ Server url not configured.</translation>
|
|||
<source>transportTitle</source>
|
||||
<translation>Transport</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>natAndFirewallTitle</source>
|
||||
<translation>NAT and Firewall</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>enableIceLabel</source>
|
||||
<translation>Enable ICE</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>stunServerLabel</source>
|
||||
<translation>STUN/TURN server</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>enableTurnLabel</source>
|
||||
<translation>Enable TURN</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>turnUserLabel</source>
|
||||
<translation>TURN user</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>turnPasswordLabel</source>
|
||||
<translation>TURN password</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>networkProtocolAndPortsTitle</source>
|
||||
<translation>Network protocol and Ports</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWindow</name>
|
||||
|
|
|
|||
|
|
@ -589,6 +589,34 @@ Url du serveur non configurée.</translation>
|
|||
<source>transportTitle</source>
|
||||
<translation>Transport</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>natAndFirewallTitle</source>
|
||||
<translation>NAT et Pare-feu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>enableIceLabel</source>
|
||||
<translation>Activer ICE</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>stunServerLabel</source>
|
||||
<translation>Serveur STUN/TURN</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>enableTurnLabel</source>
|
||||
<translation>Activer TURN</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>turnUserLabel</source>
|
||||
<translation>Utilisateur TURN</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>turnPasswordLabel</source>
|
||||
<translation>Mot de passe TURN</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>networkProtocolAndPortsTitle</source>
|
||||
<translation>Protocol réseau et ports</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWindow</name>
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@ RowLayout {
|
|||
id: content
|
||||
|
||||
Layout.alignment: {
|
||||
var height = _content[0].height
|
||||
var height = _content[0] ? _content[0].height : 0
|
||||
return height < label.height ? Qt.AlignVCenter : Qt.AlignTop
|
||||
}
|
||||
|
||||
Layout.maximumWidth: FormGroupStyle.content.width
|
||||
Layout.preferredHeight: _content[0].height
|
||||
Layout.preferredHeight: _content[0] ? _content[0].height : 0
|
||||
Layout.preferredWidth: FormGroupStyle.content.width
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,5 +54,73 @@ TabContainer {
|
|||
// Network protocol and ports.
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Form {
|
||||
title: qsTr('networkProtocolAndPortsTitle')
|
||||
width: parent.width
|
||||
|
||||
FormLine {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// NAT and Firewall.
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Form {
|
||||
title: qsTr('natAndFirewallTitle')
|
||||
width: parent.width
|
||||
|
||||
FormLine {
|
||||
FormGroup {
|
||||
label: qsTr('enableIceLabel')
|
||||
|
||||
Switch {
|
||||
id: enableIce
|
||||
}
|
||||
}
|
||||
|
||||
FormGroup {
|
||||
label: qsTr('stunServerLabel')
|
||||
|
||||
TextField {
|
||||
readOnly: !enableIce.checked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FormLine {
|
||||
FormGroup {
|
||||
label: qsTr('enableTurnLabel')
|
||||
|
||||
Switch {
|
||||
id: enableTurn
|
||||
}
|
||||
}
|
||||
|
||||
FormGroup {
|
||||
label: qsTr('turnUserLabel')
|
||||
|
||||
TextField {
|
||||
readOnly: !enableTurn.checked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FormLine {
|
||||
FormGroup {
|
||||
label: ''
|
||||
}
|
||||
|
||||
FormGroup {
|
||||
label: qsTr('turnPasswordLabel')
|
||||
|
||||
TextField {
|
||||
echoMode: TextInput.Password
|
||||
readOnly: !enableTurn.checked
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue