QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPPasswordField.qml
Go to the documentation of this file.
1pragma ComponentBehavior: Bound
2
3import QtQuick
4import QtQuick.Layouts
5
6import QGroundControl
7import QGroundControl.Controls
8import QGroundControl.FactControls
9
10RowLayout {
11 id: root
12
13 property bool _showPassword: false
14 readonly property SettingsFact _password: QGroundControl.settingsManager.ntripSettings.ntripPassword as SettingsFact
15
16 Layout.fillWidth: true
17 visible: root._password.userVisible
18 spacing: ScreenTools.defaultFontPixelWidth * 0.5
19
20 LabelledFactTextField {
21 Layout.fillWidth: true
22 textFieldPreferredWidth: ScreenTools.defaultFontPixelWidth * 30
23 fact: root._password
24 textField.echoMode: root._showPassword ? TextInput.Normal : TextInput.Password
25 }
26
27 QGCButton {
28 Layout.alignment: Qt.AlignBottom
29 text: root._showPassword ? qsTr("Hide") : qsTr("Show")
30 onClicked: root._showPassword = !root._showPassword
31 }
32}