diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-04-20 09:44:23 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 14:51:50 (GMT) |
commit | 62229907918ddf1b830a51c8a2613cf2492ae1c7 (patch) | |
tree | 165fce05c5ebac7bf7425bfebf6fd3e361f44c63 /src/gui/kernel/qgesturemanager_p.h | |
parent | 0cc862890384929c4c3b07c6dc5787362f3aeb9c (diff) | |
download | Qt-62229907918ddf1b830a51c8a2613cf2492ae1c7.zip Qt-62229907918ddf1b830a51c8a2613cf2492ae1c7.tar.gz Qt-62229907918ddf1b830a51c8a2613cf2492ae1c7.tar.bz2 |
Added a QApplication::eventDeliveryDelayForGestures property that
specifies a timout for mouse event delivery to allow the gesture
framework to successfully recognizer a gesture.
Diffstat (limited to 'src/gui/kernel/qgesturemanager_p.h')
-rw-r--r-- | src/gui/kernel/qgesturemanager_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesturemanager_p.h b/src/gui/kernel/qgesturemanager_p.h index ef3cdaf..c22027f 100644 --- a/src/gui/kernel/qgesturemanager_p.h +++ b/src/gui/kernel/qgesturemanager_p.h @@ -69,9 +69,11 @@ class Q_GUI_EXPORT QGestureManager : public QObject public: QGestureManager(QObject *parent); - // should be internal void setGestureTargetWidget(QWidget *widget); + int eventDeliveryDelay() const; + void setEventDeliveryDelay(int ms); + void addRecognizer(QGestureRecognizer *recognizer); void removeRecognizer(QGestureRecognizer *recognizer); @@ -94,6 +96,7 @@ private: QWidget *targetWidget; QPoint lastPos; + int eventDeliveryDelayTimeout; int delayedPressTimer; QMouseEvent lastMousePressEvent; |