| 808 | } |
| 809 | |
| 810 | void |
| 811 | SourceWidget::applyConfig() |
| 812 | { |
| 813 | bool blocked = this->ui->throttleSpin->blockSignals(true); |
| 814 | this->ui->throttleSpin->setValue(static_cast<int>(this->panelConfig->throttleRate)); |
| 815 | this->ui->throttleSpin->blockSignals(blocked); |
| 816 | |
| 817 | blocked = this->ui->throttleCheck->blockSignals(true); |
| 818 | this->ui->throttleCheck->setChecked(this->panelConfig->throttle); |
| 819 | this->ui->throttleCheck->blockSignals(blocked); |
| 820 | |
| 821 | this->onThrottleChanged(); |
| 822 | |
| 823 | this->ui->dcRemoveCheck->setChecked(this->panelConfig->dcRemove); |
| 824 | this->ui->swapIQCheck->setChecked(this->panelConfig->iqRev); |
| 825 | this->ui->agcEnabledCheck->setChecked(this->panelConfig->agcEnabled); |
| 826 | this->ui->gainPresetCheck->setChecked(this->panelConfig->gainPresetEnabled); |
| 827 | |
| 828 | this->setProperty("collapsed", this->panelConfig->collapsed); |
| 829 | |
| 830 | this->saverUI->applyConfig(); |
| 831 | |
| 832 | this->deserializeAutoGains(); |
| 833 | } |
| 834 | |
| 835 | bool |
| 836 | SourceWidget::event(QEvent *event) |
nothing calls this directly
no test coverage detected