Double-clicking the waterfall now obeys the tuning step and rounding

option in the settings.
merge-requests/3/head
Elliott Liggett 2021-05-01 22:30:45 -07:00
rodzic 95707c6b26
commit fd87b3487f
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -2387,6 +2387,9 @@ void wfmain::handlePlotDoubleClick(QMouseEvent *me)
//y = plot->yAxis->pixelToCoord(me->pos().y());
x = plot->xAxis->pixelToCoord(me->pos().x());
freq.Hz = x*1E6;
freq.Hz = roundFrequency(freq.Hz, tsWfScrollHz);
emit setFrequency(freq);
issueDelayedCommand(cmdGetFreq);
showStatusBarText(QString("Going to %1 MHz").arg(x));
@ -2405,6 +2408,9 @@ void wfmain::handleWFDoubleClick(QMouseEvent *me)
{
x = plot->xAxis->pixelToCoord(me->pos().x());
freq.Hz = x*1E6;
freq.Hz = roundFrequency(freq.Hz, tsWfScrollHz);
emit setFrequency(freq);
issueDelayedCommand(cmdGetFreq);
showStatusBarText(QString("Going to %1 MHz").arg(x));