From 73258eca7ab7e3981d9f4aaa5484020cb67854a0 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 26 Jun 2018 20:23:24 +0200 Subject: Move QQSinglePointHandler::acceptedButtons to QQPointerDeviceHandler This property must exist in DragHandler, but we're preparing to have DragHandler inherit from MultiPointHandler. So it's no longer true that a MultiPointHandler only handles touch events: if minimumPointCount is set to 1, it can handle the mouse as well. Change-Id: If6432e22b4382e79820c4d993645cf3de3b83d0c Reviewed-by: Shawn Rutledge --- src/quick/handlers/qquickpointerdevicehandler_p_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/handlers/qquickpointerdevicehandler_p_p.h') diff --git a/src/quick/handlers/qquickpointerdevicehandler_p_p.h b/src/quick/handlers/qquickpointerdevicehandler_p_p.h index ee6bd060d6..6a950590f3 100644 --- a/src/quick/handlers/qquickpointerdevicehandler_p_p.h +++ b/src/quick/handlers/qquickpointerdevicehandler_p_p.h @@ -66,6 +66,7 @@ public: QQuickPointerDevice::DeviceTypes acceptedDevices = QQuickPointerDevice::AllDevices; QQuickPointerDevice::PointerTypes acceptedPointerTypes = QQuickPointerDevice::AllPointerTypes; + Qt::MouseButtons acceptedButtons = Qt::LeftButton; Qt::KeyboardModifiers acceptedModifiers = Qt::KeyboardModifierMask; }; -- cgit v1.2.3