diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2017-05-22 11:43:06 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-05-22 19:12:47 +0000 |
commit | aa1830fc1706a45e2b6721da85f6484fec821484 (patch) | |
tree | 04b0cdc6d566cb8a3e8e23111c636c77a6e06032 /src/quick | |
parent | 48011c2dfeb83b4fe717034d4b3c353714fead48 (diff) |
Change enum values to not start from 0
And allow potential combination of passive and exclusive grabbers
Change-Id: I0bd2d6863305c3db7c91b064c0a58cd5e167470e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 14 |
1 files 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) |