diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-03-24 09:46:25 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-03-24 09:46:25 (GMT) |
commit | 4e3ddb46e28f05b784c4cffec146c3f2306a3db8 (patch) | |
tree | c4d68368ef71439cb50264db6c8331b4da435672 | |
parent | f5caf1998dea7dbad25dc6aed5a00fc33e8a5818 (diff) | |
download | Qt-4e3ddb46e28f05b784c4cffec146c3f2306a3db8.zip Qt-4e3ddb46e28f05b784c4cffec146c3f2306a3db8.tar.gz Qt-4e3ddb46e28f05b784c4cffec146c3f2306a3db8.tar.bz2 |
add QEvent::TouchBegin, TouchUpdate, and TouchEnd event types (with GraphicsScene* equivalents)
-rw-r--r-- | src/corelib/kernel/qcoreevent.cpp | 6 | ||||
-rw-r--r-- | src/corelib/kernel/qcoreevent.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreevent.cpp b/src/corelib/kernel/qcoreevent.cpp index 3fcfc98..9fbffd7 100644 --- a/src/corelib/kernel/qcoreevent.cpp +++ b/src/corelib/kernel/qcoreevent.cpp @@ -222,6 +222,12 @@ QT_BEGIN_NAMESPACE \value ZOrderChange The widget's z-order has changed. This event is never sent to top level windows. \value KeyboardLayoutChange The keyboard layout has changed. \value DynamicPropertyChange A dynamic property was added, changed or removed from the object. + \value TouchBegin Beginning of a sequence of touch-screen and/or track-pad events (QTouchEvent) + \value TouchUpdate Touch-screen event (QTouchEvent) + \value TouchEnd End of touch-event sequence (QTouchEvent) + \value GraphicsSceneTouchBegin Beginning of a sequence of touch-screen and/or track-pad events in a graphics scene (QGraphicsSceneTouchEvent) + \value GraphicsSceneTouchUpdate Touch-screen event in a graphics scene (QGraphicsSceneTouchEvent) + \value GraphicsSceneTouchEnd End of touch-event sequence in a graphics scene (QGraphicsSceneTouchEvent) User events should have values between \c User and \c{MaxUser}: diff --git a/src/corelib/kernel/qcoreevent.h b/src/corelib/kernel/qcoreevent.h index 5487703..639f488 100644 --- a/src/corelib/kernel/qcoreevent.h +++ b/src/corelib/kernel/qcoreevent.h @@ -265,6 +265,13 @@ public: UngrabKeyboard = 189, CocoaRequestModal = 190, // Internal for requesting an application modal Cocoa Window + TouchBegin = 193, + TouchUpdate = 194, + TouchEnd = 195, + GraphicsSceneTouchBegin = 196, + GraphicsSceneTouchUpdate = 197, + GraphicsSceneTouchEnd = 198, + // 512 reserved for Qt Jambi's MetaCall event // 513 reserved for Qt Jambi's DeleteOnMainThread event |