QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RallyPointEditorHeader.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3
4import QGroundControl
5import QGroundControl.Controls
6
7Rectangle {
8 id: outerEditorRect
9 height: innerEditorRect.y + innerEditorRect.height + (_margin * 2)
10 radius: _radius
11 color: qgcPal.missionItemEditor
12
13 property var controller ///< RallyPointController
14
15 readonly property real _margin: ScreenTools.defaultFontPixelWidth / 2
16 readonly property real _radius: ScreenTools.defaultFontPixelWidth / 2
17
18 QGCLabel {
19 id: editorLabel
20 anchors.margins: _margin
21 anchors.left: parent.left
22 anchors.top: parent.top
23 text: qsTr("Rally Points")
24 }
25
26 Rectangle {
27 id: innerEditorRect
28 anchors.margins: _margin
29 anchors.left: parent.left
30 anchors.right: parent.right
31 anchors.top: editorLabel.bottom
32 height: infoLabel.height + (_margin * 2)
33 color: qgcPal.windowShadeDark
34 radius: _radius
35
36 QGCLabel {
37 id: infoLabel
38 anchors.margins: _margin
39 anchors.top: parent.top
40 anchors.left: parent.left
41 anchors.right: parent.right
42 wrapMode: Text.WordWrap
43 font.pointSize: ScreenTools.smallFontPointSize
44 text: qsTr("Rally Points provide alternate landing points when performing a Return to Launch (RTL).")
45 }
46 }
47}