Fixed minor bug where flock did not stop double-clicking on the

spectrum.
merge-requests/2/head
Elliott Liggett 2021-02-26 00:24:02 -08:00
rodzic 6b67c0ab2b
commit 5286b5f412
1 zmienionych plików z 17 dodań i 11 usunięć

Wyświetl plik

@ -2000,12 +2000,15 @@ void wfmain::handlePlotDoubleClick(QMouseEvent *me)
double x;
//double y;
//double px;
x = plot->xAxis->pixelToCoord(me->pos().x());
//y = plot->yAxis->pixelToCoord(me->pos().y());
emit setFrequency(x);
cmdOut = cmdGetFreq;
delayedCommand->start();
showStatusBarText(QString("Going to %1 MHz").arg(x));
if(!freqLock)
{
//y = plot->yAxis->pixelToCoord(me->pos().y());
x = plot->xAxis->pixelToCoord(me->pos().x());
emit setFrequency(x);
cmdOut = cmdGetFreq;
delayedCommand->start();
showStatusBarText(QString("Going to %1 MHz").arg(x));
}
}
void wfmain::handleWFDoubleClick(QMouseEvent *me)
@ -2015,11 +2018,14 @@ void wfmain::handleWFDoubleClick(QMouseEvent *me)
//x = wf->xAxis->pixelToCoord(me->pos().x());
//y = wf->yAxis->pixelToCoord(me->pos().y());
// cheap trick until I figure out how the axis works on the WF:
x = plot->xAxis->pixelToCoord(me->pos().x());
emit setFrequency(x);
cmdOut = cmdGetFreq;
delayedCommand->start();
showStatusBarText(QString("Going to %1 MHz").arg(x));
if(!freqLock)
{
x = plot->xAxis->pixelToCoord(me->pos().x());
emit setFrequency(x);
cmdOut = cmdGetFreq;
delayedCommand->start();
showStatusBarText(QString("Going to %1 MHz").arg(x));
}
}
void wfmain::handlePlotClick(QMouseEvent *me)