don't handle wheel events in the event filter, let any widget that wants to steal it do so

seems to have a more natural behaviour

svn path=/trunk/KDE/kdelibs/; revision=1212343
This commit is contained in:
Marco Martin 2011-01-06 15:30:55 +00:00
parent 0069c38934
commit 244ec458f8

View File

@ -1500,9 +1500,7 @@ bool ScrollWidget::sceneEventFilter(QGraphicsItem *i, QEvent *e)
case QEvent::GraphicsSceneMouseRelease: case QEvent::GraphicsSceneMouseRelease:
d->handleMouseReleaseEvent(static_cast<QGraphicsSceneMouseEvent*>(e)); d->handleMouseReleaseEvent(static_cast<QGraphicsSceneMouseEvent*>(e));
break; break;
case QEvent::GraphicsSceneWheel:
d->handleWheelEvent(static_cast<QGraphicsSceneWheelEvent*>(e));
break;
//Multitouch related events, we actually need only TouchUpdate //Multitouch related events, we actually need only TouchUpdate
case QEvent::TouchUpdate: { case QEvent::TouchUpdate: {
QList<QTouchEvent::TouchPoint> touchPoints = static_cast<QTouchEvent *>(e)->touchPoints(); QList<QTouchEvent::TouchPoint> touchPoints = static_cast<QTouchEvent *>(e)->touchPoints();