QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
OfflineMapInfo.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7
8RowLayout {
9 id: control
10 Layout.fillWidth: true
11 spacing: ScreenTools.defaultFontPixelWidth * 2
12
13 property var tileSet: null
14
15 signal clicked
16
17 property int _tileCount: tileSet.totalTileCount
18
19 QGCLabel {
20 Layout.fillWidth: true
21 text: tileSet.name
22 }
23
24 QGCLabel {
25 id: sizeLabel
26 text: tileSet.downloadStatus + (_tileCount > 0 ? " (" + _tileCount + " tiles)" : "")
27 }
28
29 Rectangle {
30 width: sizeLabel.height * 0.5
31 height: sizeLabel.height * 0.5
32 radius: width / 2
33 color: tileSet.complete ? "#31f55b" : "#fc5656"
34 opacity: sizeLabel.text.length > 0 ? 1 : 0
35 }
36
37 QGCButton {
38 text: qsTr("Edit")
39 onClicked: control.clicked()
40 }
41}