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/qstandardgestures_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/qstandardgestures_p.h')
-rw-r--r-- | src/gui/kernel/qstandardgestures_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qstandardgestures_p.h b/src/gui/kernel/qstandardgestures_p.h index c52d16b..5fbcc5d 100644 --- a/src/gui/kernel/qstandardgestures_p.h +++ b/src/gui/kernel/qstandardgestures_p.h @@ -76,6 +76,8 @@ public: #endif } + void setupGestureTarget(QObject *o); + QSize totalOffset; QSize lastOffset; QPoint lastPosition; @@ -98,6 +100,9 @@ public: #endif { } + + void setupGestureTarget(QObject *o); + qreal scaleFactor; qreal lastScaleFactor; qreal rotationAngle; |