4import QGroundControl.Controls
9 property color statusColor
10 property string statusText
11 property string buttonText
12 property bool buttonEnabled: true
13 property string buttonObjectName: ""
17 spacing: ScreenTools.defaultFontPixelWidth
20 Layout.preferredWidth: ScreenTools.defaultFontPixelHeight * 0.75
21 Layout.preferredHeight: ScreenTools.defaultFontPixelHeight * 0.75
22 Layout.alignment: Qt.AlignVCenter
23 statusColor: root.statusColor
27 Layout.fillWidth: true
29 wrapMode: Text.WordWrap
33 objectName: root.buttonObjectName
35 enabled: root.buttonEnabled
36 visible: root.buttonText !== ""
37 onClicked: root.clicked()