aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-07-14 16:21:13 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2016-07-14 20:09:47 +0000
commit62a90bcd8304fde9072c96f7f81cb09b4fa878dc (patch)
treec01544808fb666f1e733ba8b4388b82d39f4f864 /src/quick/items/qquickevents_p_p.h
parentc29ec2f509580a82747f71b8767c14b29aa91e50 (diff)
QQuickPointerDevice::CapabilityFlag: enforce sync with QTouchDevice
The first few values in QQuickPointerDevice::CapabilityFlag must be kept in sync with QTouchDevice::CapabilityFlag, so make it explicit. Change-Id: I0c1147319e057df26a8a732a4e494b762a1f5301 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index e5f2ac3fb7..0a306e8b46 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -262,10 +262,10 @@ public:
Q_FLAG(PointerTypes)
enum CapabilityFlag {
- Position = 0x0001,
- Area = 0x0002,
- Pressure = 0x0004,
- Velocity = 0x0008,
+ Position = QTouchDevice::Position,
+ Area = QTouchDevice::Area,
+ Pressure = QTouchDevice::Pressure,
+ Velocity = QTouchDevice::Velocity,
// some bits reserved in case we need more of QTouchDevice::Capabilities
Scroll = 0x0100, // mouse has a wheel, or there is OS-level scroll gesture recognition (dubious?)
Hover = 0x0200,