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
11 property string labelText: "Label"
12 property string valueText: "value"
13 property string valueColor: ""
14
15 width: parent.width
16
17 QGCLabel {
18 id: label
19 text: root.labelText
20 }
21 QGCLabel {
22 text: root.valueText
23 color: root.valueColor !== "" ? root.valueColor : QGroundControl.globalPalette.text
24 elide: Text.ElideRight
25 horizontalAlignment: Text.AlignRight
26 Layout.fillWidth: true
27 }
28}