From bb4baab526d938f6d8e64b698bd424d735b29629 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Wed, 3 Jun 2009 16:39:48 +0200 Subject: Make sure we handle RawTouch events sent to QApplication ... and not just to a widget --- src/gui/kernel/qapplication.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 5f2992e..8fb8086 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -3631,7 +3631,10 @@ bool QApplication::notify(QObject *receiver, QEvent *e) } bool res = false; - if (!receiver->isWidgetType()) { + if (e->type() == QEvent::RawTouch) { + res = d->translateRawTouchEvent(qobject_cast(receiver), + static_cast(e)); + } else if (!receiver->isWidgetType()) { res = d->notify_helper(receiver, e); } else switch (e->type()) { #if defined QT3_SUPPORT && !defined(QT_NO_SHORTCUT) @@ -4031,10 +4034,6 @@ bool QApplication::notify(QObject *receiver, QEvent *e) } break; #endif - case QEvent::RawTouch: - res = d->translateRawTouchEvent(qobject_cast(receiver), - static_cast(e)); - break; case QEvent::TouchBegin: // Note: TouchUpdate and TouchEnd events are sent to d->currentMultitouchWidget and never propagated { -- cgit v0.12