QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LabelledButton.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: _label.text
9 property alias buttonText: _button.text
10 property real buttonPreferredWidth: -1
11
12 signal clicked
13
14 id: _root
15 spacing: ScreenTools.defaultFontPixelWidth * 2
16
17 QGCLabel {
18 id: _label
19 Layout.fillWidth: true
20 }
21
22 QGCButton {
23 id: _button
24 Layout.preferredWidth: buttonPreferredWidth
25 onClicked: _root.clicked()
26 }
27}