summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-06 12:56:41 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 14:52:01 (GMT)
commit6732e5fb7f35e79ba84c8bbee37541d067f309ec (patch)
tree0f03813316e292efd5beeb0302d4f5adab73894b
parenta321909ced9fe28ea476ab95c7c7592db5090acc (diff)
downloadQt-6732e5fb7f35e79ba84c8bbee37541d067f309ec.zip
Qt-6732e5fb7f35e79ba84c8bbee37541d067f309ec.tar.gz
Qt-6732e5fb7f35e79ba84c8bbee37541d067f309ec.tar.bz2
Improved delaying mouse events delivery.
-rw-r--r--src/gui/kernel/qgesturemanager.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/kernel/qgesturemanager.cpp b/src/gui/kernel/qgesturemanager.cpp
index 1635ac4..fd1eaca 100644
--- a/src/gui/kernel/qgesturemanager.cpp
+++ b/src/gui/kernel/qgesturemanager.cpp
@@ -354,11 +354,13 @@ bool QGestureManager::filterEvent(QWidget *receiver, QEvent *event)
delayedPressTimer = startTimer(eventDeliveryDelayTimeout);
if (!delayedPressTimer)
qWarning("QGestureManager: couldn't start delayed press timer!");
+ ret = true;
}
- // if we have postponed a mouse press event, postpone all
- // following event
- if (delayedPressTimer)
+ if (delayedPressTimer && event->type() == QEvent::MouseMove) {
+ // if we have postponed a mouse press event, postpone all
+ // subsequent mouse move events as well.
ret = true;
+ }
lastPos = currentPos;
return ret;