From 4bf9a208c98cbae1866561534083ff8e886df375 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 5 Jul 2024 17:25:41 +0300 Subject: [PATCH] Revert "Handle null input devices in WheelEvent" This reverts commit c342d57116acc2149942839b4729b8e2dd94ed2f. --- src/input_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input_event.cpp b/src/input_event.cpp index 3eac2f9658..c51c49eea6 100644 --- a/src/input_event.cpp +++ b/src/input_event.cpp @@ -28,7 +28,7 @@ MouseEvent::MouseEvent(QEvent::Type type, const QPointF &pos, Qt::MouseButton bu WheelEvent::WheelEvent(const QPointF &pos, qreal delta, qint32 deltaV120, Qt::Orientation orientation, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, InputRedirection::PointerAxisSource source, std::chrono::microseconds timestamp, InputDevice *device) - : QWheelEvent(pos, pos, QPoint(), (orientation == Qt::Horizontal) ? QPoint(delta, 0) : QPoint(0, delta), buttons, modifiers, Qt::NoScrollPhase, device ? device->isNaturalScroll() : false) + : QWheelEvent(pos, pos, QPoint(), (orientation == Qt::Horizontal) ? QPoint(delta, 0) : QPoint(0, delta), buttons, modifiers, Qt::NoScrollPhase, device->isNaturalScroll()) , m_device(device) , m_orientation(orientation) , m_delta(delta)