QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FlyViewToolBarIndicators.qml
Go to the documentation of this file.
1import QtQuick
2
3import QGroundControl
4import QGroundControl.Controls
5import QGroundControl.Toolbar
6
7Item {
8 objectName: "flyViewToolBarIndicators"
9 implicitWidth: mainLayout.width + _widthMargin
10
11 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
12 property real _toolIndicatorMargins: ScreenTools.defaultFontPixelHeight * 0.66
13 property real _widthMargin: _toolIndicatorMargins * 2
14
15 Row {
16 id: mainLayout
17 anchors.margins: _toolIndicatorMargins
18 anchors.left: parent.left
19 anchors.top: parent.top
20 anchors.bottom: parent.bottom
21 spacing: ScreenTools.defaultFontPixelWidth * 1.75
22
23 Repeater {
24 id: appRepeater
25 model: QGroundControl.corePlugin.toolBarIndicators
26 Loader {
27 anchors.top: parent.top
28 anchors.bottom: parent.bottom
29 source: modelData
30 visible: item.showIndicator
31 }
32 }
33
34 Repeater {
35 id: toolIndicatorsRepeater
36 model: _activeVehicle ? _activeVehicle.toolIndicators : []
37
38 Loader {
39 anchors.top: parent.top
40 anchors.bottom: parent.bottom
41 source: modelData
42 visible: item.showIndicator
43 }
44 }
45 }
46}