mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
uncrustification
This commit is contained in:
parent
2357ee1774
commit
2d4ad5a76d
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user