| 1181 | } |
| 1182 | |
| 1183 | void |
| 1184 | SourceWidget::onBandwidthChanged(void) |
| 1185 | { |
| 1186 | float bandwidth = SCAST(float, this->ui->bwSpin->value()); |
| 1187 | |
| 1188 | if (this->profile != nullptr) |
| 1189 | this->profile->setBandwidth(bandwidth); |
| 1190 | |
| 1191 | if (m_analyzer != nullptr) { |
| 1192 | try { |
| 1193 | m_analyzer->setBandwidth(bandwidth); |
| 1194 | } catch (Suscan::Exception &) { |
| 1195 | (void) QMessageBox::critical( |
| 1196 | this, |
| 1197 | "SigDigger error", |
| 1198 | "Source does not allow setting the bandwidth", |
| 1199 | QMessageBox::Ok); |
| 1200 | } |
| 1201 | } |
| 1202 | } |
| 1203 | |
| 1204 | void |
| 1205 | SourceWidget::onPPMChanged(void) |
nothing calls this directly
no test coverage detected