diff --git a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp index a87b3c879..724057645 100644 --- a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp @@ -241,10 +241,6 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) : ConfigTaskWidget(parent) ManualControlSettings::CHANNELGROUPS_ACCESSORY0 << ManualControlSettings::CHANNELGROUPS_ACCESSORY1 << ManualControlSettings::CHANNELGROUPS_ACCESSORY2; - - ((QGridLayout*)m_config->groupBox->layout())->setAlignment(m_config->label_8,Qt::AlignHCenter); - ((QGridLayout*)m_config->groupBox->layout())->setAlignment(m_config->label_9,Qt::AlignHCenter); - ((QGridLayout*)m_config->groupBox->layout())->setAlignment(m_config->label_10,Qt::AlignHCenter); } void ConfigInputWidget::resetTxControls() { diff --git a/ground/openpilotgcs/src/plugins/config/input.ui b/ground/openpilotgcs/src/plugins/config/input.ui index ffa8dbff2..693c284ba 100644 --- a/ground/openpilotgcs/src/plugins/config/input.ui +++ b/ground/openpilotgcs/src/plugins/config/input.ui @@ -174,7 +174,7 @@ QGroupBox::title { 30 160 451 - 155 + 141 @@ -184,53 +184,8 @@ QGroupBox::title { Configure each stabilization mode for each axis - - - - - 0 - 0 - - - - - -1 - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -font: bold 12px; -margin:1px; - - - Pitch - - - Qt::AlignCenter - - - - - - 0 - 0 - - - - - -1 - 75 - false - true - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); color: rgb(255, 255, 255); @@ -326,20 +281,6 @@ margin:1px; - - - 0 - 0 - - - - - -1 - 75 - false - true - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); color: rgb(255, 255, 255); @@ -363,11 +304,28 @@ margin:1px; 20 - 40 + 20 + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +font: bold 12px; +margin:1px; + + + Pitch + + + Qt::AlignCenter + + + diff --git a/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp b/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp index 871e84818..095575eb1 100644 --- a/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp +++ b/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp @@ -24,13 +24,6 @@ inputChannelForm::inputChannelForm(QWidget *parent,bool showlegend) : delete ui->legend5; } - ((QGridLayout*)layout())->setAlignment(ui->legend0,Qt::AlignHCenter); - ((QGridLayout*)layout())->setAlignment(ui->legend1,Qt::AlignHCenter); - ((QGridLayout*)layout())->setAlignment(ui->legend2,Qt::AlignHCenter); - ((QGridLayout*)layout())->setAlignment(ui->legend3,Qt::AlignHCenter); - ((QGridLayout*)layout())->setAlignment(ui->legend4,Qt::AlignHCenter); - ((QGridLayout*)layout())->setAlignment(ui->legend5,Qt::AlignHCenter); - connect(ui->channelMin,SIGNAL(valueChanged(int)),this,SLOT(minMaxUpdated())); connect(ui->channelMax,SIGNAL(valueChanged(int)),this,SLOT(minMaxUpdated())); connect(ui->channelGroup,SIGNAL(currentIndexChanged(int)),this,SLOT(groupUpdated()));