mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
uncrustification
This commit is contained in:
parent
6ce7907cd3
commit
59b50ee84e
@ -91,16 +91,17 @@ void InputChannelForm::minMaxUpdated()
|
||||
void InputChannelForm::neutralUpdated()
|
||||
{
|
||||
int neutralValue = ui->neutralValue->value();
|
||||
if(ui->channelRev->isChecked()) {
|
||||
if(neutralValue > ui->channelMin->value()) {
|
||||
|
||||
if (ui->channelRev->isChecked()) {
|
||||
if (neutralValue > ui->channelMin->value()) {
|
||||
ui->channelMin->setValue(neutralValue);
|
||||
} else if(neutralValue < ui->channelMax->value()) {
|
||||
} else if (neutralValue < ui->channelMax->value()) {
|
||||
ui->channelMax->setValue(neutralValue);
|
||||
}
|
||||
} else {
|
||||
if(neutralValue < ui->channelMin->value()) {
|
||||
if (neutralValue < ui->channelMin->value()) {
|
||||
ui->channelMin->setValue(neutralValue);
|
||||
} else if(neutralValue > ui->channelMax->value()) {
|
||||
} else if (neutralValue > ui->channelMax->value()) {
|
||||
ui->channelMax->setValue(neutralValue);
|
||||
}
|
||||
}
|
||||
@ -112,14 +113,14 @@ void InputChannelForm::reversedUpdated()
|
||||
int min = ui->channelMin->value();
|
||||
int max = ui->channelMax->value();
|
||||
|
||||
if(ui->channelRev->isChecked()) {
|
||||
if(min < max) {
|
||||
if (ui->channelRev->isChecked()) {
|
||||
if (min < max) {
|
||||
ui->channelMax->setValue(min);
|
||||
ui->channelMin->setValue(max);
|
||||
ui->channelNeutral->setValue(value);
|
||||
}
|
||||
} else {
|
||||
if(min > max) {
|
||||
if (min > max) {
|
||||
ui->channelMax->setValue(min);
|
||||
ui->channelMin->setValue(max);
|
||||
ui->channelNeutral->setValue(value);
|
||||
|
@ -839,7 +839,7 @@ void ConfigTaskWidget::disconnectWidgetUpdatesToSlot(QWidget *widget, const char
|
||||
disconnect(cb, SIGNAL(valueChanged(int)), this, function);
|
||||
} else if (QDoubleSpinBox * cb = qobject_cast<QDoubleSpinBox *>(widget)) {
|
||||
disconnect(cb, SIGNAL(valueChanged(double)), this, function);
|
||||
}else if (QLineEdit * cb = qobject_cast<QLineEdit *>(widget)) {
|
||||
} else if (QLineEdit * cb = qobject_cast<QLineEdit *>(widget)) {
|
||||
disconnect(cb, SIGNAL(textChanged(double)), this, function);
|
||||
} else if (QCheckBox * cb = qobject_cast<QCheckBox *>(widget)) {
|
||||
disconnect(cb, SIGNAL(stateChanged(int)), this, function);
|
||||
|
Loading…
x
Reference in New Issue
Block a user