QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PlanPanelGroupHeader.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7/// Group heading followed by a rule across the rest of the width, with optional trailing summary text
8RowLayout {
9 property alias text: captionLabel.text
10 property alias summary: summaryLabel.text
11
12 Layout.fillWidth: true
13 spacing: ScreenTools.defaultFontPixelHeight * 0.5
14
15 QGCPalette { id: qgcPal }
16
17 QGCCaptionLabel {
18 id: captionLabel
19 color: qgcPal.textPrimary
20 }
21
22 Rectangle {
23 Layout.fillWidth: true
24 implicitHeight: 1
25 color: qgcPal.borderSubtle
26 }
27
28 QGCLabel {
29 id: summaryLabel
30 visible: text !== ""
31 color: qgcPal.textSecondary
32 font.pointSize: ScreenTools.smallFontPointSize
33 }
34}