summaryrefslogtreecommitdiffstats
path: root/examples/gestures/graphicsview/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gestures/graphicsview/main.cpp')
-rw-r--r--examples/gestures/graphicsview/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gestures/graphicsview/main.cpp b/examples/gestures/graphicsview/main.cpp
index 250da06..1b325ee 100644
--- a/examples/gestures/graphicsview/main.cpp
+++ b/examples/gestures/graphicsview/main.cpp
@@ -94,8 +94,8 @@ public:
bool sceneEvent(QEvent *event)
{
- if (event->type() == QEvent::Gesture) {
- QGestureEvent *gestureEvent = static_cast<QGestureEvent*>(event);
+ if (event->type() == QEvent::GraphicsSceneGesture) {
+ QGraphicsSceneGestureEvent *gestureEvent = static_cast<QGraphicsSceneGestureEvent*>(event);
if (gestureEvent->gesture(Qt::DoubleTap)) {
event->accept();
colored = !colored;