| 1195 | } |
| 1196 | |
| 1197 | void |
| 1198 | FFTWidget::onRangeChanged(float min, float max) |
| 1199 | { |
| 1200 | bool specState = m_spectrum->signalsBlocked(); |
| 1201 | bool fftState = this->ui->pandRange->signalsBlocked(); |
| 1202 | |
| 1203 | m_spectrum->blockSignals(true); |
| 1204 | this->ui->pandRange->blockSignals(true); |
| 1205 | this->ui->wfRange->blockSignals(true); |
| 1206 | |
| 1207 | m_spectrum->setPandapterRange(min, max); |
| 1208 | this->setPandRangeMin(std::floor(min)); |
| 1209 | this->setPandRangeMax(std::floor(max)); |
| 1210 | |
| 1211 | if (this->getRangeLock()) { |
| 1212 | m_spectrum->setWfRange(min, max); |
| 1213 | this->setWfRangeMin(std::floor(min)); |
| 1214 | this->setWfRangeMax(std::floor(max)); |
| 1215 | } |
| 1216 | |
| 1217 | m_spectrum->blockSignals(specState); |
| 1218 | this->ui->pandRange->blockSignals(fftState); |
| 1219 | this->ui->wfRange->blockSignals(fftState); |
| 1220 | } |
| 1221 | |
| 1222 | void |
| 1223 | FFTWidget::onZoomChanged(float level) |
nothing calls this directly
no test coverage detected