QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleSummaryHeader.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7/// Heading of a group on the Summary page: an outlined label followed by a rule across the rest of the width
8RowLayout {
9 property alias text: captionLabel.text
10
11 Layout.fillWidth: true
12 spacing: ScreenTools.defaultFontPixelWidth / 2
13
14 QGCPalette { id: qgcPal }
15
16 Rectangle {
17 implicitWidth: captionLabel.implicitWidth + ScreenTools.defaultFontPixelWidth * 3
18 implicitHeight: captionLabel.implicitHeight + ScreenTools.defaultFontPixelHeight * 0.4
19 radius: ScreenTools.defaultBorderRadius
20 color: "transparent"
21 border.color: qgcPal.borderSubtle
22
23 QGCCaptionLabel {
24 id: captionLabel
25 anchors.centerIn: parent
26 color: qgcPal.textPrimary
27 }
28 }
29
30 Rectangle {
31 Layout.fillWidth: true
32 implicitHeight: 1
33 color: qgcPal.borderSubtle
34 }
35}