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 implicitWidth: mainLayout.width + _widthMargin
9
10 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
11 property real _toolIndicatorMargins: ScreenTools.defaultFontPixelHeight * 0.66
12 property real _widthMargin: _toolIndicatorMargins * 2
13
14 Row {
15 id: mainLayout
16 anchors.margins: _toolIndicatorMargins
17 anchors.left: parent.left
18 anchors.top: parent.top
19 anchors.bottom: parent.bottom
20 spacing: ScreenTools.defaultFontPixelWidth * 1.75
21
22 Repeater {
23 id: appRepeater
24 model: QGroundControl.corePlugin.toolBarIndicators
25 Loader {
26 anchors.top: parent.top
27 anchors.bottom: parent.bottom
28 source: modelData
29 visible: item.showIndicator
30 }
31 }
32
33 Repeater {
34 id: toolIndicatorsRepeater
35 model: _activeVehicle ? _activeVehicle.toolIndicators : []
36
37 Loader {
38 anchors.top: parent.top
39 anchors.bottom: parent.bottom
40 source: modelData
41 visible: item.showIndicator
42 }
43 }
44 }
45}