summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qapplication_p.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-03-25 11:57:14 +0100
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-03-25 12:25:37 +0100
commit480b0fe494cc7dec7d8082860c6216e970ce6a57 (patch)
tree17d909653fe0c195904e823c4cb9ecc653d1e35b /src/gui/kernel/qapplication_p.h
parente1dd9242895e27afa63b255198ad541f738c06ef (diff)
downloadqt4-tools-480b0fe494cc7dec7d8082860c6216e970ce6a57.tar.gz
implement event propagation for touch events
behavior is similar to that of QGraphicsScene mouse events: the first touch event (the TouchBegin) is propagated to all parents. if a widget accepts the event, it will receive all other touch events (the TouchUpdate and TouchEnd events). If no widget accepts the TouchBegin, then we will fallback to normal mouse events (TBD).
Diffstat (limited to 'src/gui/kernel/qapplication_p.h')
-rw-r--r--src/gui/kernel/qapplication_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h
index 6d75f373db..252d0cb36d 100644
--- a/src/gui/kernel/qapplication_p.h
+++ b/src/gui/kernel/qapplication_p.h
@@ -424,6 +424,9 @@ public:
void sendSyntheticEnterLeave(QWidget *widget);
#endif
+ QPointer<QWidget> currentMultitouchWidget;
+ static void updateTouchPointsForWidget(QWidget *widget, QTouchEvent *touchEvent);
+
private:
#ifdef Q_WS_QWS
QMap<const QScreen*, QRect> maxWindowRects;