diff --git a/sdrgui/gui/graphicsviewzoom.cpp b/sdrgui/gui/graphicsviewzoom.cpp index 29b317abf..a210cfb07 100644 --- a/sdrgui/gui/graphicsviewzoom.cpp +++ b/sdrgui/gui/graphicsviewzoom.cpp @@ -70,7 +70,7 @@ bool GraphicsViewZoom::eventFilter(QObject *object, QEvent *event) QWheelEvent* wheelEvent = static_cast(event); if (QApplication::keyboardModifiers() == m_modifiers) { - if (wheelEvent->orientation() == Qt::Vertical) + if (wheelEvent->angleDelta().y() != 0) { double angle = wheelEvent->angleDelta().y(); double factor = qPow(m_zoomFactorBase, angle); diff --git a/sdrgui/gui/valuedial.cpp b/sdrgui/gui/valuedial.cpp index e01d1ad39..04b3ee24d 100644 --- a/sdrgui/gui/valuedial.cpp +++ b/sdrgui/gui/valuedial.cpp @@ -386,7 +386,7 @@ void ValueDial::wheelEvent(QWheelEvent *event) if (m_animationState == 0) { - if (event->delta() < 0) + if (event->angleDelta().y() < 0) { if (event->modifiers() & Qt::ShiftModifier) { e *= 5; diff --git a/sdrgui/gui/valuedialz.cpp b/sdrgui/gui/valuedialz.cpp index 740fde6b2..f66189f09 100644 --- a/sdrgui/gui/valuedialz.cpp +++ b/sdrgui/gui/valuedialz.cpp @@ -439,7 +439,7 @@ void ValueDialZ::wheelEvent(QWheelEvent* event) { qint64 e = findExponent(m_hightlightedDigit); - if(event->delta() < 0) + if(event->angleDelta().y() < 0) { if (event->modifiers() & Qt::ShiftModifier) { e *= 5;