Commit afcf6615 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4551 from DonLakeFlyer/ComlexItemChildren

Fix position of children of complex items
parents 26d76be6 31254944
...@@ -467,6 +467,24 @@ QGCView { ...@@ -467,6 +467,24 @@ QGCView {
missionItem: object missionItem: object
sequenceNumber: object.lastSequenceNumber sequenceNumber: object.lastSequenceNumber
visible: object.specifiesCoordinate visible: object.specifiesCoordinate
// These are the non-coordinate child mission items attached to this item
Row {
anchors.top: parent.top
anchors.left: parent.right
Repeater {
model: !object.isSimpleItem ? object.childItems : 0
delegate: MissionItemIndexLabel {
label: object.abbreviation
checked: object.isCurrentItem
z: 2
onClicked: setCurrentItem(object.sequenceNumber)
}
}
}
} }
} }
...@@ -514,7 +532,7 @@ QGCView { ...@@ -514,7 +532,7 @@ QGCView {
anchors.left: parent.right anchors.left: parent.right
Repeater { Repeater {
model: object.childItems model: object.isSimpleItem ? object.childItems : 0
delegate: MissionItemIndexLabel { delegate: MissionItemIndexLabel {
label: object.abbreviation label: object.abbreviation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment