summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-03-25 18:14:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-26 07:28:24 +0100
commitbadbb6fdd2b59b324b6b044fa03076492f27ddf0 (patch)
tree31402e37ca43c5f717f4dd064ef7610485e86b6d /src/widgets/graphicsview
parentc5323959d76970e26aa288a6b2ccf2b6eb73e26d (diff)
Make QGraphicsScene::touchEventhandler ignore unhandled touch events
This was not done in Qt 4 to play well with the QGesture implementation, and may need to be revisited if/when we bring back QGesture for Qt 5. Change-Id: I4f5f6c8a67387039e838d1ef42ecc70c455ed8a3 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/widgets/graphicsview')
-rw-r--r--src/widgets/graphicsview/qgraphicsscene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsscene.cpp b/src/widgets/graphicsview/qgraphicsscene.cpp
index 2768c67134..8a0b983c73 100644
--- a/src/widgets/graphicsview/qgraphicsscene.cpp
+++ b/src/widgets/graphicsview/qgraphicsscene.cpp
@@ -5821,7 +5821,7 @@ void QGraphicsScenePrivate::touchEventHandler(QTouchEvent *sceneTouchEvent)
}
if (itemsNeedingEvents.isEmpty()) {
- sceneTouchEvent->accept();
+ sceneTouchEvent->ignore();
return;
}