mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
OP-1628 Uncrustify
This commit is contained in:
parent
8d4adeae13
commit
35a11d5a71
@ -47,8 +47,6 @@ void AutoUpdatePage::autoUpdate()
|
||||
|
||||
void AutoUpdatePage::updateStatus(uploader::ProgressStep status, QVariant value)
|
||||
{
|
||||
QString msg;
|
||||
|
||||
switch (status) {
|
||||
case uploader::WAITING_DISCONNECT:
|
||||
disableButtons();
|
||||
@ -65,6 +63,7 @@ void AutoUpdatePage::updateStatus(uploader::ProgressStep status, QVariant value)
|
||||
ui->levellinProgressBar->setValue(value.toInt());
|
||||
break;
|
||||
case uploader::JUMP_TO_BL:
|
||||
disableButtons();
|
||||
ui->levellinProgressBar->setValue(value.toInt());
|
||||
ui->levellinProgressBar->setMaximum(5);
|
||||
ui->statusLabel->setText(tr("Board going into bootloader mode. Please wait."));
|
||||
@ -81,7 +80,7 @@ void AutoUpdatePage::updateStatus(uploader::ProgressStep status, QVariant value)
|
||||
ui->statusLabel->setText(tr("Uploading description."));
|
||||
break;
|
||||
case uploader::BOOTING:
|
||||
ui->statusLabel->setText(tr("Booting the board%. Please wait").arg(value.toString()));
|
||||
ui->statusLabel->setText(tr("Booting the board%1. Please wait").arg(value.toString()));
|
||||
break;
|
||||
case uploader::SUCCESS:
|
||||
enableButtons(true);
|
||||
|
@ -46,7 +46,7 @@ Core::IUAVGadget *UploaderGadgetFactory::createGadget(QWidget *parent)
|
||||
isautocapable = gadgetWidget->autoUpdateCapable();
|
||||
connect(this, SIGNAL(autoUpdate(bool)), gadgetWidget, SLOT(autoUpdate(bool)));
|
||||
connect(this, SIGNAL(reboot()), gadgetWidget, SLOT(systemReset()));
|
||||
connect(gadgetWidget, SIGNAL(progressUpdate(uploader::ProgressStep,QVariant)), this, SIGNAL(progressUpdate(uploader::ProgressStep, QVariant)));
|
||||
connect(gadgetWidget, SIGNAL(progressUpdate(uploader::ProgressStep, QVariant)), this, SIGNAL(progressUpdate(uploader::ProgressStep, QVariant)));
|
||||
return new UploaderGadget(QString("Uploader"), gadgetWidget, parent);
|
||||
}
|
||||
|
||||
|
@ -738,7 +738,7 @@ bool UploaderGadgetWidget::autoUpdate(bool erase)
|
||||
TelemetryManager *telemetryManager = pluginManager->getObject<TelemetryManager>();
|
||||
Q_ASSERT(telemetryManager);
|
||||
|
||||
if(!telemetryManager->isConnected()) {
|
||||
if (!telemetryManager->isConnected()) {
|
||||
progressUpdate(BOOTING, erase ? tr(" and erasing settings") : QVariant());
|
||||
ResultEventLoop eventLoop;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user