QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSField.qml
Go to the documentation of this file.
1pragma ComponentBehavior: Bound
2
3import QtQuick
4import QtQuick.Layouts
5
6import QGroundControl
7import QGroundControl.Controls
8
9/// A label above its control, which keeps the GPS panels usable in the narrow indicator drawer. An optional note
10/// goes below the control.
11ColumnLayout {
12 id: root
13
14 property string label
15 /// Explanation below the control; children declared in a field also go below it.
16 property string note
17 default property alias content: control.data
18
19 Layout.minimumWidth: 0
20 spacing: ScreenTools.defaultFontPixelHeight / 4
21
22 GPSNoteLabel { text: root.label }
23
24 ColumnLayout {
25 id: control
26 Layout.minimumWidth: 0
27 spacing: root.spacing
28 }
29
30 GPSNoteLabel {
31 visible: text !== ""
32 text: root.note
33 }
34}