diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-13 17:08:18 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 14:51:25 (GMT) |
commit | 86a160b083f9d43c07d42bbd7d2ef8b676552e38 (patch) | |
tree | cf809282c646ef327156a5ed5ae3fd4671c0e3e4 /src/corelib | |
parent | f8c5c2720b4a48dad0f68b83d9c494185e012cd1 (diff) | |
download | Qt-86a160b083f9d43c07d42bbd7d2ef8b676552e38.zip Qt-86a160b083f9d43c07d42bbd7d2ef8b676552e38.tar.gz Qt-86a160b083f9d43c07d42bbd7d2ef8b676552e38.tar.bz2 |
Modifications after the api review by Brad.
Gesture types are now separated to internal ones, which are listed as
enums (though they might be converted to strings internally), and
third party gestures which are referenced by strings.
From now on QGesture objects derive from QObject, which means third
party gesture recognizer developers can use QObjects property system
to store custom data inside QGesture without need to subclass it.
Some functions were renamed to show their purpose more clear.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qnamespace.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 5747c3c..56ee768 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1551,13 +1551,17 @@ public: TouchPointReleased }; - typedef QString GestureType; - static const char UnknownGesture[] = "???"; - static const char Tap[] = "Tap"; - static const char DoubleTap[] = "DoubleTap"; - static const char LongTap[] = "LongTap"; - static const char Pan[] = "Pan"; - static const char Pinch[] = "Pinch"; + enum GestureType + { + UnknownGesture, + TapGesture, + DoubleTapGesture, + TrippleTapGesture, + TapAndHoldGesture, + PanGesture, + PinchGesture + }; + enum GestureState { |