diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-01 14:21:32 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-01 14:21:32 (GMT) |
commit | 51bfbc326be268f552650dc30408479150a36744 (patch) | |
tree | 7166f72f24f369ffe62c47ee68dc80f4f3701f3b /src/gui/graphicsview | |
parent | 9fe43ff4e313220a1ecb02a990324cb6b768e585 (diff) | |
download | Qt-51bfbc326be268f552650dc30408479150a36744.zip Qt-51bfbc326be268f552650dc30408479150a36744.tar.gz Qt-51bfbc326be268f552650dc30408479150a36744.tar.bz2 |
Extended gesture autotest.
Make sure partial gestures do not propagate further if an item that expects
partial gestures received it.
Task-number: resulted from QTBUG-6876
Reviewed-by: trustme
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index a72761a..6bc02cc 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -6003,7 +6003,8 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) cachedTargetItems = cachedItemGestures.keys(); qSort(cachedTargetItems.begin(), cachedTargetItems.end(), qt_closestItemFirst); DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" - << "Conflicting gestures:" << conflictedGestures; + << "Normal gestures:" << normalGestures + << "Conflicting gestures:" << conflictedGestures; // deliver conflicted gestures as override events AND remember // initial gesture targets @@ -6080,6 +6081,10 @@ void QGraphicsScenePrivate::gestureEventHandler(QGestureEvent *event) const Qt::GestureFlags flags = d->gestureContext.value(gesture->gestureType()); if (flags & Qt::IgnoredGesturesPropagateToParent) parentPropagatedGestures.insert(gesture); + } else { + DEBUG() << "QGraphicsScenePrivate::gestureEventHandler:" + << "no target for" << gesture << "at" + << gesture->hotSpot() << gesture->d_func()->sceneHotSpot; } } qSort(cachedTargetItems.begin(), cachedTargetItems.end(), qt_closestItemFirst); |