QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SplitIndicator.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3
4import QGroundControl
5import QGroundControl.Controls
6
7Rectangle {
8 id: _root
9 width: ScreenTools.defaultFontPixelHeight * 1.5
10 height: width
11 radius: width / 2
12 border.color: indicatorColor
13 color: "transparent"
14 opacity: 0.75
15
16 property color indicatorColor: "white"
17
18 signal clicked
19
20 Rectangle {
21 anchors.margins: _root.height / 6
22 anchors.top: parent.top
23 anchors.bottom: parent.bottom
24 anchors.horizontalCenter: parent.horizontalCenter
25 width: 1
26 color: indicatorColor
27 }
28
29 Rectangle {
30 anchors.margins: _root.height / 6
31 anchors.left: parent.left
32 anchors.right: parent.right
33 anchors.verticalCenter: parent.verticalCenter
34 height: 1
35 color: indicatorColor
36 }
37
38 QGCMouseArea {
39 fillItem: parent
40 onClicked: _root.clicked()
41 }
42}