summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-03-25 10:57:14 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-03-25 11:25:37 (GMT)
commit480b0fe494cc7dec7d8082860c6216e970ce6a57 (patch)
tree17d909653fe0c195904e823c4cb9ecc653d1e35b /src/gui/kernel/qevent.h
parente1dd9242895e27afa63b255198ad541f738c06ef (diff)
downloadQt-480b0fe494cc7dec7d8082860c6216e970ce6a57.zip
Qt-480b0fe494cc7dec7d8082860c6216e970ce6a57.tar.gz
Qt-480b0fe494cc7dec7d8082860c6216e970ce6a57.tar.bz2
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/qevent.h')
-rw-r--r--src/gui/kernel/qevent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 3cb712d..506e0c1 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -758,6 +758,8 @@ public:
protected:
QList<TouchPoint *> _touchPoints;
+
+ friend class QApplicationPrivate;
};
QT_END_NAMESPACE