1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1628 Uncrustify

This commit is contained in:
m_thread 2015-01-20 00:01:03 +01:00
parent fe404f1e33
commit e313d1ec67
4 changed files with 9 additions and 7 deletions

View File

@ -498,11 +498,12 @@ void SetupWizard::pageChanged(int currId)
void SetupWizard::reboot() const
{
SetupWizard *wiz = const_cast<SetupWizard *>(this);
wiz->setWindowFlags(wiz->windowFlags() & ~Qt::WindowStaysOnTopHint);
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
Q_ASSERT(pm);
UploaderGadgetFactory *uploader = pm->getObject<UploaderGadgetFactory>();
UploaderGadgetFactory *uploader = pm->getObject<UploaderGadgetFactory>();
Q_ASSERT(uploader);
uploader->reboot();

View File

@ -33,7 +33,7 @@ RebootDialog::RebootDialog(UploaderGadgetWidget *uploader) :
ui(new Ui::RebootDialog), m_uploader(uploader)
{
setWindowFlags(((windowFlags() | Qt::CustomizeWindowHint)
& ~Qt::WindowCloseButtonHint & ~Qt::WindowMinMaxButtonsHint));
& ~Qt::WindowCloseButtonHint & ~Qt::WindowMinMaxButtonsHint));
ui->setupUi(this);
connect(this, SIGNAL(reboot()), m_uploader, SLOT(systemReboot()));
ui->rebootProgressBar->setVisible(true);
@ -67,9 +67,9 @@ void RebootDialog::progressUpdate(uploader::ProgressStep progress, QVariant mess
ui->rebootProgressBar->setVisible(false);
ui->okButton->setVisible(true);
ui->label->setText(tr("<font color='red'>Reboot failed!</font><p> Please perform a manual reboot by power cycling the board.<br>"
"To power cycle the controller remove all batteries and the USB cable for at least 30 seconds.<br>"
"After 30 seconds, plug in the board again and wait for it to connect, this can take a few seconds.<br>"
"Then press Ok."));
"To power cycle the controller remove all batteries and the USB cable for at least 30 seconds.<br>"
"After 30 seconds, plug in the board again and wait for it to connect, this can take a few seconds.<br>"
"Then press Ok."));
QDialog::exec();
} else {
accept();

View File

@ -35,8 +35,7 @@ namespace Ui {
class RebootDialog;
}
class RebootDialog : public QDialog
{
class RebootDialog : public QDialog {
Q_OBJECT
public:

View File

@ -552,6 +552,7 @@ void UploaderGadgetWidget::systemEraseBoot()
void UploaderGadgetWidget::rebootWithDialog()
{
RebootDialog dialog(this);
dialog.exec();
}
@ -1014,6 +1015,7 @@ void UploaderGadgetWidget::autoUpdateStatus(uploader::ProgressStep status, QVari
{
QString msg;
int remaining;
switch (status) {
case uploader::WAITING_DISCONNECT:
m_config->autoUpdateLabel->setText(tr("Waiting for all OpenPilot boards to be disconnected from USB."));