summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/global/qnamespace.h15
-rw-r--r--src/corelib/kernel/qcoreevent.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 1635f8a..5747c3c 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -1550,6 +1550,21 @@ public:
TouchPointStationary,
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 GestureState
+ {
+ GestureStarted = 0,
+ GestureFinished = 1
+ };
+
}
#ifdef Q_MOC_RUN
;
diff --git a/src/corelib/kernel/qcoreevent.h b/src/corelib/kernel/qcoreevent.h
index 42a75f8..c9f9f24 100644
--- a/src/corelib/kernel/qcoreevent.h
+++ b/src/corelib/kernel/qcoreevent.h
@@ -273,6 +273,8 @@ public:
GraphicsSceneTouchUpdate = 197,
GraphicsSceneTouchEnd = 198,
+ Gesture = 191,
+
// 512 reserved for Qt Jambi's MetaCall event
// 513 reserved for Qt Jambi's DeleteOnMainThread event