summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent_p.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-03-24 10:19:06 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-03-24 10:26:32 (GMT)
commitcbac8c9c6c8bdb2868434563a20cdc16d9cc6402 (patch)
tree1a3e1a852fd1c1f8c1fa4fe4c09be3d660e4691f /src/gui/kernel/qevent_p.h
parent07696ec4844e6eb9b9aec58a381d9c0f9403e7c2 (diff)
downloadQt-cbac8c9c6c8bdb2868434563a20cdc16d9cc6402.zip
Qt-cbac8c9c6c8bdb2868434563a20cdc16d9cc6402.tar.gz
Qt-cbac8c9c6c8bdb2868434563a20cdc16d9cc6402.tar.bz2
add QTouchEvent and QGraphicsSceneTouchEvent
these events contain a list of all touch points. note that the coordinates for QTouchEvent are floating point, since many devices offer sub-pixel resolution.
Diffstat (limited to 'src/gui/kernel/qevent_p.h')
-rw-r--r--src/gui/kernel/qevent_p.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h
index cc94aad..5e24eeb 100644
--- a/src/gui/kernel/qevent_p.h
+++ b/src/gui/kernel/qevent_p.h
@@ -89,6 +89,22 @@ protected:
friend class QMouseEvent;
};
+class QTouchEventTouchPointPrivate
+{
+public:
+ inline QTouchEventTouchPointPrivate(int id)
+ : id(id),
+ state(Qt::TouchPointReleased),
+ pressure(qreal(-1.))
+ { }
+
+ int id;
+ Qt::TouchPointState state;
+ QPointF pos, startPos, lastPos;
+ QPointF globalPos, startGlobalPos, lastGlobalPos;
+ qreal pressure;
+};
+
QT_END_NAMESPACE
#endif // QEVENT_P_H