QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ConfigGroupHeader.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7/// Group heading in an outlined rounded label like a QGCGroupBox heading, 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.width: 1
22 border.color: qgcPal.borderSubtle
23
24 QGCCaptionLabel {
25 id: captionLabel
26 anchors.centerIn: parent
27 color: qgcPal.textPrimary
28 }
29 }
30
31 Rectangle {
32 Layout.fillWidth: true
33 implicitHeight: 1
34 color: qgcPal.borderSubtle
35 }
36}