QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
CameraTriggerIcon.qml
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * (c) 2009-2024 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 *
5 * QGroundControl is licensed according to the terms in the file
6 * COPYING.md in the root of the source code directory.
7 *
8 ****************************************************************************/
9
10import QtQuick
11
12import QGroundControl
13import QGroundControl.Controls
14
15/// Camera glyph used to mark camera trigger points on the map (both engines)
16Rectangle {
17 width: _radius * 2
18 height: _radius * 2
19 radius: _radius
20 color: "black"
21 opacity: 0.4
22
23 readonly property real _radius: ScreenTools.defaultFontPixelHeight * 0.6
24
25 QGCPalette { id: qgcPal; colorGroupEnabled: true }
26
27 QGCColoredImage {
28 anchors.centerIn: parent
29 anchors.alignWhenCentered: false // Prevents anchors.centerIn from snapping to integer coordinates, which can throw off centering.
30 width: parent.width * 0.65
31 height: width
32 source: "/InstrumentValueIcons/camera.svg"
33 sourceSize.height: height
34 color: qgcPal.window
35 }
36}