QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4TuningComponent.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7
8ColumnLayout {
9 id: root
10 spacing: ScreenTools.defaultFontPixelWidth / 4
11
12 property var model
13
14 property real _availableHeight: availableHeight
15 property real _availableWidth: availableWidth
16
17 FactPanelController {
18 id: controller
19 }
20
21 QGCTabBar {
22 id: tabBar
23
24 Repeater {
25 model: root.model
26 QGCTabButton {
27 text: buttonText
28 }
29 }
30 }
31
32 Loader {
33 id: loader
34 source: model.get(tabBar.currentIndex).tuningPage
35
36 property bool useAutoTuning: true
37 property real availableWidth: _availableWidth
38 property real availableHeight: _availableHeight - loader.y
39 }
40}