send the event to the widget, it will have coordinates mapped in a more

precise way

svn path=/trunk/KDE/kdelibs/; revision=1045778
This commit is contained in:
Marco Martin 2009-11-06 18:58:47 +00:00
parent 60eabf5382
commit 3639317617

View File

@ -484,7 +484,7 @@ void ScrollWidget::wheelEvent(QGraphicsSceneWheelEvent *event)
bool ScrollWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
{
if (!scene()) {
if (!d->widget && !scene()) {
return false;
}
@ -493,7 +493,7 @@ bool ScrollWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
event->type() == QEvent::GraphicsSceneMouseMove ||
event->type() == QEvent::GraphicsSceneMouseRelease) {
if (scene()) {
scene()->sendEvent(this, event);
scene()->sendEvent(d->widget, event);
}
}
}