Browse Source

Add "Clear flight trails"

QGC4.4
Don Gagne 9 years ago
parent
commit
7fb9ec9835
  1. 34
      src/FlightDisplay/FlightDisplayViewWidgets.qml

34
src/FlightDisplay/FlightDisplayViewWidgets.qml

@ -197,23 +197,37 @@ Item { @@ -197,23 +197,37 @@ Item {
z: QGroundControl.zOrderWidgets
dropDownComponent: Component {
Row {
Column {
spacing: ScreenTools.defaultFontPixelWidth
Repeater {
model: QGroundControl.flightMapSettings.mapTypes
Row {
spacing: ScreenTools.defaultFontPixelWidth
Repeater {
model: QGroundControl.flightMapSettings.mapTypes
QGCButton {
checkable: true
checked: _flightMap ? _flightMap.mapType == text : false
text: modelData
QGCButton {
checkable: true
checked: _flightMap ? _flightMap.mapType == text : false
text: modelData
onClicked: {
_flightMap.mapType = text
_dropButtonsExclusiveGroup.current = null
onClicked: {
_flightMap.mapType = text
_dropButtonsExclusiveGroup.current = null
}
}
}
}
QGCButton {
text: "Clear flight trails"
enabled: QGroundControl.multiVehicleManager.activeVehicle
onClicked: {
QGroundControl.multiVehicleManager.activeVehicle.clearTrajectoryPoints()
_dropButtonsExclusiveGroup.current = null
}
}
}
}
}

Loading…
Cancel
Save