Browse Source

Merge pull request #8567 from DonLakeFlyer/StatusIndices

Plan - Terrain Status: Vertical index display. Click anywhere in bar.
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
d6272a767d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      src/PlanView/MissionItemStatus.qml

30
src/PlanView/MissionItemStatus.qml

@ -99,12 +99,32 @@ Rectangle { @@ -99,12 +99,32 @@ Rectangle {
checked: object.isCurrentItem
label: object.abbreviation.charAt(0)
index: object.abbreviation.charAt(0) > 'A' && object.abbreviation.charAt(0) < 'z' ? -1 : object.sequenceNumber
showSequenceNumbers: true
visible: true
onClicked: root.setCurrentSeqNum(object.sequenceNumber)
showSequenceNumbers: false
}
Rectangle {
id: indexBackground
anchors.leftMargin: -2
anchors.rightMargin: -2
anchors.fill: indexLabel
color: qgcPal.window
opacity: 0.3
visible: indexLabel.visible
transform: Rotation { angle: 90; origin.x: indexBackground.width / 2; origin.y: indexBackground.height / 2 }
}
QGCLabel {
id: indexLabel
anchors.centerIn: parent
text: object.sequenceNumber
visible: indicator.index != -1
transform: Rotation { angle: 90; origin.x: indexLabel.width / 2; origin.y: indexLabel.height / 2 }
}
MouseArea {
anchors.fill: parent
onClicked: root.setCurrentSeqNum(object.sequenceNumber)
}
}
}
}

Loading…
Cancel
Save