QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
StatusPill.qml
Go to the documentation of this file.
1import QtQuick
2
3import QGroundControl
4import QGroundControl.Controls
5
6/// Small colored pill label. Hidden when text is empty.
7Rectangle {
8 id: control
9
10 property string text: ""
11 property real fontPointSize: ScreenTools.smallFontPointSize
12
13 width: statusLabel.implicitWidth + ScreenTools.defaultFontPixelWidth
14 height: statusLabel.implicitHeight
15 radius: height / 2
16 visible: control.text.length > 0
17
18 QGCLabel {
19 id: statusLabel
20
21 anchors.centerIn: parent
22 text: control.text
23 color: QGroundControl.globalPalette.indicatorText
24 font.pointSize: control.fontPointSize
25 font.bold: true
26 }
27}