6import QGroundControl.Controls
11 function saveSettings() {
16 Layout.preferredWidth: _secondColumnWidth
17 Layout.fillWidth: true
18 font.pointSize: ScreenTools.smallFontPointSize
19 wrapMode: Text.WordWrap
20 text: qsTr("Note: For best perfomance, please disable AutoConnect to UDP devices on the General page.")
26 QGCLabel { text: qsTr("Port") }
29 text: subEditConfig.localPort.toString()
31 Layout.preferredWidth: _secondColumnWidth
32 inputMethodHints: Qt.ImhFormattedNumbersOnly
33 onTextChanged: subEditConfig.localPort = parseInt(portField.text)
37 QGCLabel { text: qsTr("Server Addresses (optional)") }
40 model: subEditConfig.hostList
46 Layout.preferredWidth: _secondColumnWidth
52 onClicked: subEditConfig.removeHost(modelData)
62 Layout.preferredWidth: _secondColumnWidth
63 placeholderText: qsTr("Example: 127.0.0.1:14550")
66 text: qsTr("Add Server")
67 enabled: hostField.text !== ""
69 subEditConfig.addHost(hostField.text)