diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-08-21 11:57:18 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-08-21 12:52:16 (GMT) |
commit | f13908359f08d856c2825988e65651dbf744c0e4 (patch) | |
tree | 4841ec567fa09b50f73a5c58565605a22396ebf4 /src/gui/kernel/qgesture_p.h | |
parent | b69bc882acdc445c5ef2334697f7eec9cb73f16d (diff) | |
download | Qt-f13908359f08d856c2825988e65651dbf744c0e4.zip Qt-f13908359f08d856c2825988e65651dbf744c0e4.tar.gz Qt-f13908359f08d856c2825988e65651dbf744c0e4.tar.bz2 |
Improved a QGesture api a little bit.
Changed the constructor of the QGesture to separate the gesture target (the
object/widget that the gesture filters events for), and the parent object.
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r-- | src/gui/kernel/qgesture_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h index 37f3146..f584713 100644 --- a/src/gui/kernel/qgesture_p.h +++ b/src/gui/kernel/qgesture_p.h @@ -69,11 +69,14 @@ class QGesturePrivate : public QObjectPrivate public: QGesturePrivate() - : graphicsItem(0), eventFilterProxyGraphicsItem(0), state(Qt::NoGesture) + : gestureTarget(0), graphicsItem(0), eventFilterProxyGraphicsItem(0), + state(Qt::NoGesture) { } + virtual void setupGestureTarget(QObject *o); + QPointer<QObject> gestureTarget; QGraphicsItem *graphicsItem; QGraphicsItem *eventFilterProxyGraphicsItem; |