CoordinateIndicator.qml 810 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11 12 13
import QtQuick      2.3
import QtLocation   5.3

import QGroundControl.ScreenTools   1.0
import QGroundControl.Controls      1.0
import QGroundControl.Vehicle       1.0

/// Marker for displaying a mission item on the map
MapQuickItem {
    id: _item

    property int sequenceNumber
    property string label
Valentin Platzgummer's avatar
Valentin Platzgummer committed
14
    property bool checked
Valentin Platzgummer's avatar
Valentin Platzgummer committed
15 16 17 18 19 20 21 22 23

    signal clicked

    anchorPoint.x:  sourceItem.anchorPointX
    anchorPoint.y:  sourceItem.anchorPointY

    sourceItem:
        MissionItemIndexLabel {
            id:             _label
Valentin Platzgummer's avatar
Valentin Platzgummer committed
24
            checked:        _item.checked
Valentin Platzgummer's avatar
Valentin Platzgummer committed
25 26 27 28 29 30 31 32
            label:          _item.label
            index:          _item.sequenceNumber
            gimbalYaw:      0
            vehicleYaw:     0
            showGimbalYaw:  false
            onClicked:      _item.clicked()
        }
}