Commit 35a89d52 authored by Don Gagne's avatar Don Gagne

WIP on Firmware Upgrade conversion to Qml

parent 50cef503
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QGroundControl.Controls 1.0
import QGroundControl.FactControls 1.0
import QGroundControl.Palette 1.0
Rectangle {
width: 600
height: 400
property var qgcPal: QGCPalette { colorGroup: QGCPalette.Active }
color: qgcPal.window
Text {
text: "FIRMWARE UPDATE"
color: qgcPal.windowText
font.pointSize: 20
}
Column {
QGCRadioButton {
text: qsTr("Standard Version (stable)")
}
QGCRadioButton {
text: qsTr("Beta Testing (beta)")
}
QGCRadioButton {
text: qsTr("Developer Build (master)")
}
QGCRadioButton {
text: qsTr("Custom firmware file...")
}
}
}
......@@ -132,8 +132,17 @@ void SetupView::_firmwareButtonClicked(void)
QGCMessageBox::warning("Setup", "Firmware Update cannot be performed while vehicle is armed.");
return;
}
#if 1
PX4FirmwareUpgrade* setup = new PX4FirmwareUpgrade(this);
#else
// NYI
QGCQmlWidgetHolder* setup = new QGCQmlWidgetHolder;
Q_CHECK_PTR(setup);
//setup->setAutoPilot(_autoPilotPlugin);
setup->setSource(QUrl::fromUserInput("qrc:/qml/FirmwareUpgrade.qml"));
#endif
_changeSetupWidget(setup);
}
......
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