aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerdevicehandler_p_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-06-26 20:23:24 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-06-29 14:42:18 +0000
commit73258eca7ab7e3981d9f4aaa5484020cb67854a0 (patch)
tree72805a0605bc4c47a27fdf2a9187aca4ed6b593c /src/quick/handlers/qquickpointerdevicehandler_p_p.h
parentda722fb448f06cf43780e6f857a1ccd9f07176d6 (diff)
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 <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpointerdevicehandler_p_p.h')
-rw-r--r--src/quick/handlers/qquickpointerdevicehandler_p_p.h1
1 files changed, 1 insertions, 0 deletions
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;
};