--- a/src/hbcore/gestures/hbgesturerecognizers_p.cpp Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbcore/gestures/hbgesturerecognizers_p.cpp Fri Sep 17 08:32:10 2010 +0300
@@ -74,8 +74,14 @@
\return
*/
-QGesture* HbPanGestureRecognizer::create(QObject *)
+QGesture* HbPanGestureRecognizer::create(QObject *target)
{
+ if (target && target->isWidgetType()) {
+ static_cast<QWidget *>(target)->setAttribute(Qt::WA_AcceptTouchEvents);
+ }
+ if (QGraphicsObject *o = qobject_cast<QGraphicsObject *>(target)){
+ o->setAcceptTouchEvents(true);
+ }
return new HbPanGesture;
}