summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_p.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-08-11 07:39:26 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-09-23 13:10:40 (GMT)
commit48d0f84958fdc2dcffab75f33842a9dbc3d4d7b1 (patch)
tree86bff59c6dcc57dc0ca29ffd0effaa6de4fb55ae /src/gui/kernel/qapplication_p.h
parent5e11ae8dc8594f648105f8a62baf1b82c909fd2a (diff)
downloadQt-48d0f84958fdc2dcffab75f33842a9dbc3d4d7b1.zip
Qt-48d0f84958fdc2dcffab75f33842a9dbc3d4d7b1.tar.gz
Qt-48d0f84958fdc2dcffab75f33842a9dbc3d4d7b1.tar.bz2
Implement advanced pointer handling on S60
Since we only get one pointer event at a time, we need to keep a list of all known touch points in QApplicationPrivate (otherwise the QTouchEvent won't contain enough points). The QApplication machinery can handle having inactive touch-points in the list, so at the moment we don't clear the list. We treat PointerNumber zero as the primary touch point, and only send regular mouse events for that pointer, never for the others. Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/kernel/qapplication_p.h')
-rw-r--r--src/gui/kernel/qapplication_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h
index 707caaa..aec21fd 100644
--- a/src/gui/kernel/qapplication_p.h
+++ b/src/gui/kernel/qapplication_p.h
@@ -576,6 +576,11 @@ public:
void _q_readRX71MultiTouchEvents();
#endif
+#if defined(Q_WS_S60)
+ int maxTouchPressure;
+ QList<QTouchEvent::TouchPoint> appAllTouchPoints;
+#endif
+
private:
#ifdef Q_WS_QWS
QMap<const QScreen*, QRect> maxWindowRects;