QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LabelledLabel.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7RowLayout {
8 property alias label: _labelLabel.text
9 property alias labelText: _label.text
10 property alias labelTextFormat: _label.textFormat
11 property alias labelTextElide: _label.elide
12 property real labelPreferredWidth: -1
13 /// Widest the text gets; with labelTextElide, longer text is elided to fit.
14 property real labelMaximumWidth: Number.POSITIVE_INFINITY
15
16 spacing: ScreenTools.defaultFontPixelWidth * 2
17
18 QGCLabel {
19 id: _labelLabel
20 Layout.fillWidth: true
21 Layout.minimumWidth: implicitWidth
22 }
23
24 QGCLabel {
25 id: _label
26 Layout.preferredWidth: labelPreferredWidth
27 Layout.maximumWidth: labelMaximumWidth
28 }
29}