mirror of https://github.com/f4exb/sdrangel.git
Fixed build issues for issue #773
This commit is contained in:
parent
d22bdb3e5e
commit
202ba6d8da
|
@ -107,7 +107,7 @@ public:
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MsgFrequencyZooming : public Message {
|
class SDRBASE_API MsgFrequencyZooming : public Message {
|
||||||
MESSAGE_CLASS_DECLARATION
|
MESSAGE_CLASS_DECLARATION
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -2278,7 +2278,11 @@ void GLSpectrum::wheelEvent(QWheelEvent *event)
|
||||||
|
|
||||||
void GLSpectrum::frequencyZoom(QWheelEvent *event)
|
void GLSpectrum::frequencyZoom(QWheelEvent *event)
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
const QPointF& p = event->position();
|
const QPointF& p = event->position();
|
||||||
|
#else
|
||||||
|
const QPointF& p = event->pos();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (event->delta() > 0) // zoom in
|
if (event->delta() > 0) // zoom in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue