1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

OP-1628 Uncrustify

This commit is contained in:
m_thread 2014-12-29 14:51:12 +01:00
parent 82c65b6b3f
commit 9614397694
2 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ void RebootPage::reboot()
enableButtons(false); enableButtons(false);
ui->rebootProgress->setValue(0); ui->rebootProgress->setValue(0);
QApplication::processEvents(); QApplication::processEvents();
connect(m_uploader, SIGNAL(progressUpdate(uploader::ProgressStep,QVariant)), this, SLOT(progressUpdate(uploader::ProgressStep,QVariant))); connect(m_uploader, SIGNAL(progressUpdate(uploader::ProgressStep, QVariant)), this, SLOT(progressUpdate(uploader::ProgressStep, QVariant)));
ui->messageLabel->setText(tr("Reboot in progress...")); ui->messageLabel->setText(tr("Reboot in progress..."));
m_uploader->reboot(); m_uploader->reboot();
} }
@ -96,7 +96,7 @@ void RebootPage::progressUpdate(uploader::ProgressStep progress, QVariant messag
{ {
Q_UNUSED(message); Q_UNUSED(message);
if (progress == uploader::SUCCESS || progress == uploader::FAILURE) { if (progress == uploader::SUCCESS || progress == uploader::FAILURE) {
disconnect(m_uploader, SIGNAL(progressUpdate(uploader::ProgressStep,QVariant)), this, SLOT(progressUpdate(uploader::ProgressStep,QVariant))); disconnect(m_uploader, SIGNAL(progressUpdate(uploader::ProgressStep, QVariant)), this, SLOT(progressUpdate(uploader::ProgressStep, QVariant)));
if (progress == uploader::FAILURE) { if (progress == uploader::FAILURE) {
ui->messageLabel->setText(tr("<font color='red'>Software reboot failed!</font><p> Please perform a manual reboot by power cycling the board. " ui->messageLabel->setText(tr("<font color='red'>Software reboot failed!</font><p> Please perform a manual reboot by power cycling the board. "
"To power cycle the controller remove all batteries and the USB cable for at least 30 seconds. " "To power cycle the controller remove all batteries and the USB cable for at least 30 seconds. "