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:
parent
60eabf5382
commit
3639317617
@ -484,7 +484,7 @@ void ScrollWidget::wheelEvent(QGraphicsSceneWheelEvent *event)
|
|||||||
|
|
||||||
bool ScrollWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
|
bool ScrollWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
|
||||||
{
|
{
|
||||||
if (!scene()) {
|
if (!d->widget && !scene()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -493,7 +493,7 @@ bool ScrollWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
|
|||||||
event->type() == QEvent::GraphicsSceneMouseMove ||
|
event->type() == QEvent::GraphicsSceneMouseMove ||
|
||||||
event->type() == QEvent::GraphicsSceneMouseRelease) {
|
event->type() == QEvent::GraphicsSceneMouseRelease) {
|
||||||
if (scene()) {
|
if (scene()) {
|
||||||
scene()->sendEvent(this, event);
|
scene()->sendEvent(d->widget, event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user