QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSNoteLabel.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7/// Wrapping plain-text note of the GPS panels; it takes the width its layout gives it instead of widening the layout.
8QGCLabel {
9 id: control
10
11 /// Shows the note in the palette's warning color.
12 property bool warning: false
13
14 Layout.fillWidth: true
15 Layout.minimumWidth: 0
16 Layout.preferredWidth: 0
17 wrapMode: Text.Wrap
18 textFormat: Text.PlainText
19 color: warning ? notePalette.warningText : notePalette.text
20
21 QGCPalette { id: notePalette; colorGroupEnabled: control.enabled }
22}