VehicleSummaryRow.qml 468 Bytes
Newer Older
1
import QtQuick          2.3
2
import QtQuick.Controls 1.2
3
import QtQuick.Layouts  1.2
4

5
RowLayout {
6 7 8 9 10 11 12 13 14 15
    property string labelText: "Label"
    property string valueText: "value"

    width: parent.width

    QGCLabel {
        id:     label
        text:   labelText
    }
    QGCLabel {
16 17 18 19
        text:                   valueText
        elide:                  Text.ElideRight
        horizontalAlignment:    Text.AlignRight
        Layout.fillWidth:       true
20 21
    }
}