| 670 | } |
| 671 | |
| 672 | float |
| 673 | FFTWidget::getdBPerUnit(void) const |
| 674 | { |
| 675 | Suscan::Singleton *sus = Suscan::Singleton::get_instance(); |
| 676 | std::string name = this->ui->unitsCombo->currentText().toStdString(); |
| 677 | auto it = sus->getSpectrumUnitFrom(name); |
| 678 | |
| 679 | if (it != sus->getLastSpectrumUnit()) |
| 680 | return it->dBPerUnit; |
| 681 | else |
| 682 | return 1.; |
| 683 | } |
| 684 | ///////////////////////////////// Setters ////////////////////////////////////// |
| 685 | bool |
| 686 | FFTWidget::setPalette(std::string const &str) |
no test coverage detected