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

uncrustification

This commit is contained in:
Corvus Corax 2014-05-16 23:42:17 +02:00
parent 2357ee1774
commit 2d4ad5a76d
2 changed files with 5 additions and 3 deletions

View File

@ -84,6 +84,7 @@ void MyTabbedStackWidget::insertTab(const int index, QWidget *tab, const QIcon &
{
// create and insert item
QListWidgetItem *item = new QListWidgetItem(icon, label);
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
item->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
item->setToolTip(label);

View File

@ -167,9 +167,10 @@ void ConfigGadgetWidget::resizeEvent(QResizeEvent *event)
void ConfigGadgetWidget::onAutopilotDisconnect()
{
QWidget *qwd = new DefaultAttitudeWidget(this);
ftw->replaceTab(ConfigGadgetWidget::sensors, qwd);
qwd = new DefaultHwSettingsWidget(this);
qwd = new DefaultHwSettingsWidget(this);
ftw->replaceTab(ConfigGadgetWidget::hardware, qwd);
emit autopilotDisconnected();
@ -190,14 +191,14 @@ void ConfigGadgetWidget::onAutopilotConnect()
QWidget *qwd = new ConfigCCAttitudeWidget(this);
ftw->replaceTab(ConfigGadgetWidget::sensors, qwd);
qwd = new ConfigCCHWWidget(this);
qwd = new ConfigCCHWWidget(this);
ftw->replaceTab(ConfigGadgetWidget::hardware, qwd);
} else if ((board & 0xff00) == 0x0900) {
// Revolution family
QWidget *qwd = new ConfigRevoWidget(this);
ftw->replaceTab(ConfigGadgetWidget::sensors, qwd);
qwd = new ConfigRevoHWWidget(this);
qwd = new ConfigRevoHWWidget(this);
ftw->replaceTab(ConfigGadgetWidget::hardware, qwd);
} else {
// Unknown board