Small code refactoring
This commit is contained in:
@@ -145,19 +145,10 @@ void MixerDialog::valuesChanged()
|
|||||||
lock = true;
|
lock = true;
|
||||||
QCheckBox * cb_fp[] = {ui->cb_FP0,ui->cb_FP1,ui->cb_FP2,ui->cb_FP3,ui->cb_FP4,ui->cb_FP5,ui->cb_FP6,ui->cb_FP7,ui->cb_FP8 };
|
QCheckBox * cb_fp[] = {ui->cb_FP0,ui->cb_FP1,ui->cb_FP2,ui->cb_FP3,ui->cb_FP4,ui->cb_FP5,ui->cb_FP6,ui->cb_FP7,ui->cb_FP8 };
|
||||||
md->srcRaw = RawSource(ui->sourceCB->itemData(ui->sourceCB->currentIndex()).toInt(), &model);
|
md->srcRaw = RawSource(ui->sourceCB->itemData(ui->sourceCB->currentIndex()).toInt(), &model);
|
||||||
if ((ui->sourceCB->itemData(ui->sourceCB->currentIndex()).toInt()-65536)<4) {
|
if (!GetEepromInterface()->getCapability(VirtualInputs) && GetEepromInterface()->getCapability(MixesWithoutExpo)) {
|
||||||
if (GetEepromInterface()->getCapability(VirtualInputs) || !GetEepromInterface()->getCapability(MixesWithoutExpo)) {
|
bool drVisible = (md->srcRaw.type == SOURCE_TYPE_STICK && md->srcRaw.index < NUM_STICKS);
|
||||||
ui->MixDR_CB->hide();
|
ui->MixDR_CB->setEnabled(drVisible);
|
||||||
ui->label_MixDR->hide();
|
ui->label_MixDR->setEnabled(drVisible);
|
||||||
}
|
|
||||||
else {
|
|
||||||
ui->MixDR_CB->setVisible(true);
|
|
||||||
ui->label_MixDR->setVisible(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ui->MixDR_CB->setHidden(true);
|
|
||||||
ui->label_MixDR->setHidden(true);
|
|
||||||
}
|
}
|
||||||
md->carryTrim = -(ui->trimCB->currentIndex()-1);
|
md->carryTrim = -(ui->trimCB->currentIndex()-1);
|
||||||
md->noExpo = ui->MixDR_CB->checkState() ? 0 : 1;
|
md->noExpo = ui->MixDR_CB->checkState() ? 0 : 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user