MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / applyConfig

Method applyConfig

Default/Source/SourceWidget.cpp:810–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810void
811SourceWidget::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
835bool
836SourceWidget::event(QEvent *event)

Callers

nothing calls this directly

Calls 3

onThrottleChangedMethod · 0.95
deserializeAutoGainsMethod · 0.95
setValueMethod · 0.80

Tested by

no test coverage detected