summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-18 16:49:50 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-20 13:10:03 (GMT)
commit6cd7a9039eafd0a4a00b0a1cf80bdf7517a25c50 (patch)
treecd0889f1040df366b44d77ce1948714eb1a34a5d /src/gui/graphicsview/qgraphicsview.cpp
parentc7320034f2a0f9433188a45ab507fd361a270f19 (diff)
downloadQt-6cd7a9039eafd0a4a00b0a1cf80bdf7517a25c50.zip
Qt-6cd7a9039eafd0a4a00b0a1cf80bdf7517a25c50.tar.gz
Qt-6cd7a9039eafd0a4a00b0a1cf80bdf7517a25c50.tar.bz2
Started implementing tests for gestures on graphicsview
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index 2babce9..f3feb15 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -2787,7 +2787,7 @@ bool QGraphicsView::event(QEvent *event)
break;
case QEvent::Gesture:
viewportEvent(event);
- break;
+ return true;
default:
break;
}
@@ -2876,8 +2876,7 @@ bool QGraphicsView::viewportEvent(QEvent *event)
gestureEvent.setCancelledGestures(ev->cancelledGestures());
QApplication::sendEvent(d->scene, &gestureEvent);
event->setAccepted(gestureEvent.isAccepted());
- if (gestureEvent.isAccepted())
- return true;
+ return true;
}
break;
case QEvent::TouchBegin: