| 758 | } |
| 759 | |
| 760 | void |
| 761 | SourceWidget::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 | |
| 771 | bool |
| 772 | SourceWidget::selectAutoGain(std::string const &name) |
no test coverage detected