| 478 | } |
| 479 | |
| 480 | void GRTimePlotAddon::updateXAxis() |
| 481 | { |
| 482 | auto x = plot()->xAxis(); |
| 483 | if(m_rollingMode) { |
| 484 | // not normal mode - rolling mode |
| 485 | x->setMin(time_sink->time().back()); |
| 486 | x->setMax(time_sink->time().front()); |
| 487 | } else { |
| 488 | // normal mode |
| 489 | x->setMin(time_sink->time().front()); |
| 490 | x->setMax(time_sink->time().back()); |
| 491 | } |
| 492 | |
| 493 | if(fftComplexMode) { |
| 494 | fft_xPlotAxis->setMin(time_sink->freqOffset() - m_currentSamplingInfo.sampleRate / 2); |
| 495 | fft_xPlotAxis->setMax(time_sink->freqOffset() + m_currentSamplingInfo.sampleRate / 2); |
| 496 | } else { |
| 497 | fft_xPlotAxis->setMin(time_sink->freqOffset()); |
| 498 | fft_xPlotAxis->setMax(time_sink->freqOffset() + m_currentSamplingInfo.sampleRate / 2); |
| 499 | } |
| 500 | |
| 501 | qInfo() << fft_xPlotAxis->min() << fft_xPlotAxis->max(); |
| 502 | |
| 503 | m_bufferPreviewer->updateDataLimits(); |
| 504 | Q_EMIT xAxisUpdated(); |
| 505 | } |
| 506 | |
| 507 | void GRTimePlotAddon::setRollingMode(bool b) |
| 508 | { |
nothing calls this directly
no test coverage detected