From 202ba6d8da450b539fb32778bfba3634f5de6578 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 17 Feb 2021 10:15:34 +0100 Subject: [PATCH] Fixed build issues for issue #773 --- sdrbase/dsp/spectrumvis.h | 2 +- sdrgui/gui/glspectrum.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sdrbase/dsp/spectrumvis.h b/sdrbase/dsp/spectrumvis.h index 9b0ed80f1..efa1ecefc 100644 --- a/sdrbase/dsp/spectrumvis.h +++ b/sdrbase/dsp/spectrumvis.h @@ -107,7 +107,7 @@ public: {} }; - class MsgFrequencyZooming : public Message { + class SDRBASE_API MsgFrequencyZooming : public Message { MESSAGE_CLASS_DECLARATION public: diff --git a/sdrgui/gui/glspectrum.cpp b/sdrgui/gui/glspectrum.cpp index a1838762e..546e23e12 100644 --- a/sdrgui/gui/glspectrum.cpp +++ b/sdrgui/gui/glspectrum.cpp @@ -2278,7 +2278,11 @@ void GLSpectrum::wheelEvent(QWheelEvent *event) void GLSpectrum::frequencyZoom(QWheelEvent *event) { +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) const QPointF& p = event->position(); +#else + const QPointF& p = event->pos(); +#endif if (event->delta() > 0) // zoom in {