QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleSummaryRow.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7
8RowLayout {
9 id: root
10 Layout.fillWidth: true
11 spacing: ScreenTools.defaultFontPixelHeight
12
13 property string labelText: "Label"
14 property string valueText: "value"
15 property string valueColor: ""
16
17 QGCLabel {
18 id: label
19 Layout.fillWidth: true
20 text: root.labelText
21 }
22
23 QGCLabel {
24 Layout.maximumWidth: ScreenTools.defaultFontPixelWidth * 20
25 text: root.valueText
26 color: root.valueColor !== "" ? root.valueColor : QGroundControl.globalPalette.text
27 elide: Text.ElideRight
28 }
29}