5import QGroundControl.Controls
9 spacing: ScreenTools.defaultFontPixelHeight / 3
11 default property alias contentItem: _controlsColumn.data
13 property string heading
14 property string iconSource
16 property real _margins: ScreenTools.defaultFontPixelHeight / 2
18 QGCPalette { id: qgcPal; colorGroupEnabled: true }
22 font.pointSize: ScreenTools.largeFontPointSize
23 visible: control.heading !== ""
27 implicitWidth: _contentRow.implicitWidth + _margins * 2
28 implicitHeight: _contentRow.implicitHeight + _margins * 2
29 Layout.fillWidth: true
30 color: qgcPal.windowShade
31 radius: ScreenTools.defaultFontPixelHeight / 4
36 anchors.left: parent.left
37 anchors.right: parent.right
38 anchors.leftMargin: _margins
39 anchors.rightMargin: _margins
40 spacing: ScreenTools.defaultFontPixelWidth * 2
43 Layout.preferredWidth: ScreenTools.defaultFontPixelHeight * 3
44 Layout.preferredHeight: ScreenTools.defaultFontPixelHeight * 1.5
45 source: control.iconSource
47 fillMode: Image.PreserveAspectFit
48 visible: control.iconSource !== ""
53 Layout.fillWidth: true
54 spacing: ScreenTools.defaultFontPixelHeight / 2