Browse Source

Clean up code used only on custom builds.

QGC4.4
Gus Grubba 5 years ago
parent
commit
acdcf6bbd2
  1. 27
      src/FlightDisplay/VTOLChecklist.qml

27
src/FlightDisplay/VTOLChecklist.qml

@ -17,8 +17,6 @@ import QGroundControl.Controls 1.0
import QGroundControl.FlightDisplay 1.0 import QGroundControl.FlightDisplay 1.0
import QGroundControl.Vehicle 1.0 import QGroundControl.Vehicle 1.0
import CustomQuickInterface 1.0
Item { Item {
property var model: listModel property var model: listModel
PreFlightCheckModel { PreFlightCheckModel {
@ -26,31 +24,6 @@ Item {
PreFlightCheckGroup { PreFlightCheckGroup {
name: qsTr("VTOL Initial Checks") name: qsTr("VTOL Initial Checks")
// Standard check list items (group 0) - Available from the start
Rectangle {
width: ScreenTools.defaultFontPixelWidth * 40
height: testFlight.height + ScreenTools.defaultFontPixelHeight
color: qgcPal.button
property bool passed: true
function reset() {
if(activeVehicle) {
CustomQuickInterface.testFlight = false
activeVehicle.checkListState = Vehicle.CheckListNotSetup
}
}
QGCCheckBox {
id: testFlight
text: "Test Flight"
enabled: !CustomQuickInterface.debugBuild
checked: CustomQuickInterface.testFlight
anchors.centerIn: parent
onClicked: CustomQuickInterface.testFlight = checked
Component.onCompleted: {
CustomQuickInterface.testFlight = false
}
}
}
PreFlightCheckButton { PreFlightCheckButton {
name: qsTr("Hardware") name: qsTr("Hardware")
manualText: qsTr("Props mounted? Wings secured? Tail secured?") manualText: qsTr("Props mounted? Wings secured? Tail secured?")

Loading…
Cancel
Save