aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickwheelhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/handlers/qquickwheelhandler.cpp')
-rw-r--r--src/quick/handlers/qquickwheelhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/handlers/qquickwheelhandler.cpp b/src/quick/handlers/qquickwheelhandler.cpp
index 16f38af962..64bf5bc540 100644
--- a/src/quick/handlers/qquickwheelhandler.cpp
+++ b/src/quick/handlers/qquickwheelhandler.cpp
@@ -95,7 +95,7 @@ Q_LOGGING_CATEGORY(lcWheelHandler, "qt.quick.handler.wheel")
QQuickWheelHandler::QQuickWheelHandler(QQuickItem *parent)
: QQuickSinglePointHandler(*(new QQuickWheelHandlerPrivate), parent)
{
- setAcceptedDevices(QQuickPointerDevice::Mouse);
+ setAcceptedDevices(QInputDevice::DeviceType::Mouse);
}
/*!
@@ -367,7 +367,7 @@ bool QQuickWheelHandler::wantsPointerEvent(QQuickPointerEvent *event)
QQuickPointerScrollEvent *scroll = event->asPointerScrollEvent();
if (!scroll)
return false;
- if (!acceptedDevices().testFlag(QQuickPointerDevice::DeviceType::TouchPad)
+ if (!acceptedDevices().testFlag(QPointingDevice::DeviceType::TouchPad)
&& scroll->synthSource() != Qt::MouseEventNotSynthesized)
return false;
if (!active()) {