--- a/homescreenapp/hsdomainmodel/src/hspagetoucharea.cpp Wed Aug 18 10:33:57 2010 +0300
+++ b/homescreenapp/hsdomainmodel/src/hspagetoucharea.cpp Mon Sep 13 13:03:23 2010 +0300
@@ -23,6 +23,7 @@
HsPageTouchArea::HsPageTouchArea(QGraphicsItem *parent)
: HbTouchArea(parent)
{
+ grabGesture(Qt::TapGesture);
grabGesture(Qt::TapAndHoldGesture);
grabGesture(Qt::PanGesture);
}
@@ -35,6 +36,18 @@
{
HsScene *scene = HsScene::instance();
+ // Tap gesture.
+ QGesture *tapGesture = event->gesture(Qt::TapGesture);
+ if (tapGesture) {
+ switch (tapGesture->state()) {
+ case Qt::GestureFinished:
+ emit scene->pageTapFinished(event);
+ break;
+ default:
+ break;
+ }
+ }
+
// Tap-and-hold gesture.
QGesture *gesture = event->gesture(Qt::TapAndHoldGesture);
if (gesture) {
@@ -45,7 +58,6 @@
default:
break;
}
- return;
}
// Pan gesture.
@@ -65,6 +77,5 @@
default:
break;
}
- return;
}
}