diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-14 08:55:04 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-18 13:21:25 (GMT) |
commit | ac8e33994455200c369d8aa9d1853b618c225058 (patch) | |
tree | e46879fd41c7bdcefc41b6f0ba25c7f0703623f3 /src/gui/graphicsview/qgraphicsview.cpp | |
parent | 8f1724f5b3b09f57e260518f644ebc002b065443 (diff) | |
download | Qt-ac8e33994455200c369d8aa9d1853b618c225058.zip Qt-ac8e33994455200c369d8aa9d1853b618c225058.tar.gz Qt-ac8e33994455200c369d8aa9d1853b618c225058.tar.bz2 |
implemented gestures support in graphicsview for QGraphicsItems and
QGraphicsProxyWidgets.
This is still work-in-progress.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 2d2113c..6a20139 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -2977,6 +2977,7 @@ bool QGraphicsView::viewportEvent(QEvent *event) gestureEvent.setGestures(ev->gestures()); gestureEvent.setCancelledGestures(ev->cancelledGestures()); QApplication::sendEvent(d->scene, &gestureEvent); + event->setAccepted(gestureEvent.isAccepted()); if (gestureEvent.isAccepted()) return true; } |