From b334241ea05558ad8cd4e558d75fa0808c50b773 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 3 Feb 2023 11:21:11 +0000 Subject: [PATCH] Allow plot click to display frequency if nothing else is under it --- wfmain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wfmain.cpp b/wfmain.cpp index a5596a4..49163c4 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -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) {