diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-12 15:07:36 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-11 13:49:16 (GMT) |
commit | 3e2cef8f6a58949b887add8ff1bb5e457e7be542 (patch) | |
tree | b1f34bff7d54fe94a0e1599650a94b71a892f9ef /examples/gestures | |
parent | ed24f677a411c449a2a3f862906aff2a313b4425 (diff) | |
download | Qt-3e2cef8f6a58949b887add8ff1bb5e457e7be542.zip Qt-3e2cef8f6a58949b887add8ff1bb5e457e7be542.tar.gz Qt-3e2cef8f6a58949b887add8ff1bb5e457e7be542.tar.bz2 |
Added QGraphicsSceneGestureEvent that extends plain QGestureEvent by
providing some additional info (like a widget that received a gesture
- for coordinates conversions).
Diffstat (limited to 'examples/gestures')
-rw-r--r-- | examples/gestures/graphicsview/main.cpp | 4 |
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; |