QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
HeightIndicator.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7
8ColumnLayout {
9 id: _root
10 spacing: 0
11
12 property var map
13 property string heightText: qsTr("30 ft")
14
15 property color _textColor: _mapPalette.text
16
17 QGCMapPalette { id: _mapPalette; lightColors: _root.map.isSatelliteMap }
18
19 Rectangle {
20 width: ScreenTools.defaultFontPixelWidth * 3
21 height: 1
22 color: _textColor
23 Layout.alignment: Qt.AlignHCenter
24 }
25
26 Rectangle {
27 width: 1
28 height: ScreenTools.defaultFontPixelWidth * 1
29 color: _textColor
30 Layout.alignment: Qt.AlignHCenter
31 }
32
33 QGCMapLabel {
34 map: _root.map
35 text: heightText
36 Layout.alignment: Qt.AlignHCenter
37 }
38
39 Rectangle {
40 width: 1
41 height: ScreenTools.defaultFontPixelWidth * 1
42 color: _textColor
43 Layout.alignment: Qt.AlignHCenter
44 }
45
46 Rectangle {
47 width: ScreenTools.defaultFontPixelWidth * 3
48 height: 1
49 color: _textColor
50 Layout.alignment: Qt.AlignHCenter
51 }
52}