Skip to content
CoordinateIndicator.qml 1011 B
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
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
    property bool checked
Valentin Platzgummer's avatar
Valentin Platzgummer committed

    signal clicked
    signal released
    signal entered
    signal exited
Valentin Platzgummer's avatar
Valentin Platzgummer committed

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

    sourceItem:
        MissionItemIndexLabel {
            id:             _label
Valentin Platzgummer's avatar
Valentin Platzgummer committed
            checked:        _item.checked
Valentin Platzgummer's avatar
Valentin Platzgummer committed
            label:          _item.label
            index:          _item.sequenceNumber
            gimbalYaw:      0
            vehicleYaw:     0
            showGimbalYaw:  false
            onClicked:      _item.clicked()            
            onReleased:     _item.released()
            onEntered:      _item.entered()
            onExited:       _item.exited()
Valentin Platzgummer's avatar
Valentin Platzgummer committed
        }
}