QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FlyViewTopRightColumnLayout.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6import QGroundControl.FlyView
7import QGroundControl.FlightMap
8
9ColumnLayout {
10 spacing: ScreenTools.defaultFontPixelHeight / 2
11
12 TerrainProgress {
13 Layout.fillWidth: true
14 }
15
16 // We use a Loader to load the photoVideoControlComponent only when we have an active vehicle and a camera manager.
17 // This make it easier to implement PhotoVideoControl without having to check for the mavlink camera
18 // to be null all over the place
19 Loader {
20 id: photoVideoControlLoader
21 Layout.alignment: Qt.AlignRight
22 sourceComponent: globals.activeVehicle && globals.activeVehicle.cameraManager ? photoVideoControlComponent : undefined
23
24 property real rightEdgeCenterInset: visible ? parent.width - x : 0
25
26 Component {
27 id: photoVideoControlComponent
28
29 PhotoVideoControl {
30 }
31 }
32 }
33}