Browse Source

Fix position of children of complex items

QGC4.4
Don Gagne 8 years ago
parent
commit
3125494433
  1. 20
      src/MissionEditor/MissionEditor.qml

20
src/MissionEditor/MissionEditor.qml

@ -467,6 +467,24 @@ QGCView { @@ -467,6 +467,24 @@ QGCView {
missionItem: object
sequenceNumber: object.lastSequenceNumber
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
Repeater {
model: object.childItems
model: object.isSimpleItem ? object.childItems : 0
delegate: MissionItemIndexLabel {
label: object.abbreviation

Loading…
Cancel
Save