Allow plot click to display frequency if nothing else is under it

failbranch
Phil Taylor 2023-02-03 11:21:11 +00:00
rodzic a511282505
commit b334241ea0
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -5285,6 +5285,10 @@ void wfmain::handlePlotClick(QMouseEvent* me)
this->mousePressFreq = plot->xAxis->pixelToCoord(cursor);
showStatusBarText(QString("Selected %1 MHz").arg(this->mousePressFreq));
}
else {
double x = plot->xAxis->pixelToCoord(cursor);
showStatusBarText(QString("Selected %1 MHz").arg(x));
}
}
else if (me->button() == Qt::RightButton)
{