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

Method selectAutoGain

Default/Source/SourceWidget.cpp:760–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760void
761SourceWidget::selectAutoGain(unsigned int gain)
762{
763 if (this->currAutoGainSet != nullptr
764 && gain < this->currAutoGainSet->size()) {
765 this->currentAutoGain = &(*this->currAutoGainSet)[gain];
766 this->ui->autoGainSlider->setMinimum(this->currentAutoGain->getMin());
767 this->ui->autoGainSlider->setMaximum(this->currentAutoGain->getMax());
768 }
769}
770
771bool
772SourceWidget::selectAutoGain(std::string const &name)

Callers 2

onSelectAutoGainMethod · 0.95

Calls 3

sizeMethod · 0.45
getMinMethod · 0.45
getMaxMethod · 0.45

Tested by

no test coverage detected