summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent_p.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-23 10:45:26 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-23 10:45:26 (GMT)
commit5e21e9b357a51eb6b3fa349dccf63e33c621fc72 (patch)
treefad2769e30786b098c2986232e1bbd8bbeb69ebe /src/gui/kernel/qevent_p.h
parentf11f41fe9e507d1f3eb8994960f0226f229bc76c (diff)
downloadQt-5e21e9b357a51eb6b3fa349dccf63e33c621fc72.zip
Qt-5e21e9b357a51eb6b3fa349dccf63e33c621fc72.tar.gz
Qt-5e21e9b357a51eb6b3fa349dccf63e33c621fc72.tar.bz2
Add functions to report normalized positions in QTouchEvent::TouchPoint
This introduces normalizedPos(), startNormalizedPos(), and lastNormalizedPos() in QTouchEvent::TouchPoint, and must be set by the implementation before being fed into Qt. We are assuming and hoping that these functions will make it easier to implement certain types of gestures (especially on a touchpad).
Diffstat (limited to 'src/gui/kernel/qevent_p.h')
-rw-r--r--src/gui/kernel/qevent_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h
index 53d7a23..ba0159f 100644
--- a/src/gui/kernel/qevent_p.h
+++ b/src/gui/kernel/qevent_p.h
@@ -112,8 +112,9 @@ public:
int id;
Qt::TouchPointStates state;
QRectF rect, sceneRect, screenRect;
- QPointF startPos, startScenePos, startScreenPos;
- QPointF lastPos, lastScenePos, lastScreenPos;
+ QPointF normalizedPos,
+ startPos, startScenePos, startScreenPos, startNormalizedPos,
+ lastPos, lastScenePos, lastScreenPos, lastNormalizedPos;
qreal pressure;
};