1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1331 uncrustified

This commit is contained in:
Philippe Renon 2014-05-16 23:53:04 +02:00
parent 846146ca80
commit fe60509ffa
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -165,6 +165,7 @@ void ConfigGadgetWidget::resizeEvent(QResizeEvent *event)
void ConfigGadgetWidget::onAutopilotDisconnect() void ConfigGadgetWidget::onAutopilotDisconnect()
{ {
QWidget *qwd = new DefaultAttitudeWidget(this); QWidget *qwd = new DefaultAttitudeWidget(this);
stackWidget->replaceTab(ConfigGadgetWidget::sensors, qwd); stackWidget->replaceTab(ConfigGadgetWidget::sensors, qwd);
qwd = new DefaultHwSettingsWidget(this); qwd = new DefaultHwSettingsWidget(this);