summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-14 08:55:04 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-18 13:21:25 (GMT)
commitac8e33994455200c369d8aa9d1853b618c225058 (patch)
treee46879fd41c7bdcefc41b6f0ba25c7f0703623f3 /src/gui/graphicsview/qgraphicsview.cpp
parent8f1724f5b3b09f57e260518f644ebc002b065443 (diff)
downloadQt-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.cpp1
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;
}