From aa1830fc1706a45e2b6721da85f6484fec821484 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Mon, 22 May 2017 11:43:06 +0200 Subject: Change enum values to not start from 0 And allow potential combination of passive and exclusive grabbers Change-Id: I0bd2d6863305c3db7c91b064c0a58cd5e167470e Reviewed-by: Shawn Rutledge --- src/quick/items/qquickevents_p_p.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index 4b3587f18c..9ab6ea9955 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -276,13 +276,13 @@ public: Q_FLAG(States) enum GrabState { - GrabPassive = 0, - GrabExclusive, - UngrabPassive, - UngrabExclusive, - CancelGrabPassive, - CancelGrabExclusive, - OverrideGrabPassive + GrabPassive = 0x01, + UngrabPassive = 0x02, + CancelGrabPassive = 0x03, + OverrideGrabPassive = 0x04, + GrabExclusive = 0x10, + UngrabExclusive = 0x20, + CancelGrabExclusive = 0x30, }; Q_ENUM(GrabState) -- cgit v1.2.3