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/qapplication.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/qapplication.h')
-rw-r--r-- | src/gui/kernel/qapplication.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.h b/src/gui/kernel/qapplication.h index 70458ef..e09ea08 100644 --- a/src/gui/kernel/qapplication.h +++ b/src/gui/kernel/qapplication.h @@ -107,6 +107,7 @@ class Q_GUI_EXPORT QApplication : public QCoreApplication Q_PROPERTY(int autoMaximizeThreshold READ autoMaximizeThreshold WRITE setAutoMaximizeThreshold) Q_PROPERTY(bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled) #endif + Q_PROPERTY(int eventDeliveryDelayForGestures READ eventDeliveryDelayForGestures WRITE setEventDeliveryDelayForGestures) public: enum Type { Tty, GuiClient, GuiServer }; @@ -270,6 +271,9 @@ public: void addGestureRecognizer(QGestureRecognizer *recognizer); void removeGestureRecognizer(QGestureRecognizer *recognizer); + void setEventDeliveryDelayForGestures(int delay); + int eventDeliveryDelayForGestures(); + Q_SIGNALS: void lastWindowClosed(); void focusChanged(QWidget *old, QWidget *now); |