5import QGroundControl.Controls
6import QGroundControl.FlyView
7import QGroundControl.FlightMap
10 spacing: ScreenTools.defaultFontPixelHeight / 2
13 Layout.fillWidth: true
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
20 id: photoVideoControlLoader
21 Layout.alignment: Qt.AlignRight
22 sourceComponent: globals.activeVehicle && globals.activeVehicle.cameraManager ? photoVideoControlComponent : undefined
24 property real rightEdgeCenterInset: visible ? parent.width - x : 0
27 id: photoVideoControlComponent