aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Guminiak <michal.guminiak@teleca.com>2011-01-04 12:08:13 +0100
committerDominik Kapusta <dominik.kapusta@teleca.com>2011-01-04 12:19:50 +0100
commit43a54bd200dbef71842dee251d1a4ff6f0d1b068 (patch)
tree0369ffd3becd5e55946421dbc18dfb96d0407733
parent64a78589f881883d58324b0f2c8503d4e2b8de55 (diff)
Fixes: NB#215046 - Regression: MeeGoTouch eats touchpoints
RevBy: Marcin, Dominik Details: When user presses the touch screen with two or more fingers, we are going to stop the initial press timer and send events to the scene. This will ensure that the scene will send the information about multiple fingers touch event to the widgets in it.
-rw-r--r--src/corelib/scene/mscene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/scene/mscene.cpp b/src/corelib/scene/mscene.cpp
index 624cc3e7..48b6c8ad 100644
--- a/src/corelib/scene/mscene.cpp
+++ b/src/corelib/scene/mscene.cpp
@@ -576,6 +576,8 @@ bool MScene::event(QEvent *event)
retValue = true;
break;
case QEvent::TouchUpdate:
+ if ((static_cast<QTouchEvent*>(event))->touchPoints().size() > 1)
+ d->forceSendingInitialEvents();
retValue = (d->touchPending ? true : QGraphicsScene::event(event));
break;
case QEvent::TouchEnd: