ignore mouse press as well if isn't possible to flick

svn path=/trunk/KDE/kdelibs/; revision=1207046
This commit is contained in:
Marco Martin 2010-12-16 17:39:59 +00:00
parent e2f5428044
commit 3ad1f7887a

View File

@ -1373,6 +1373,9 @@ void ScrollWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
{ {
if (!d->widget) { if (!d->widget) {
return; return;
} else if (!d->canYFlick() && !d->canXFlick()) {
event->ignore();
return;
} }
d->handleMousePressEvent(event); d->handleMousePressEvent(event);
@ -1398,8 +1401,7 @@ void ScrollWidget::wheelEvent(QGraphicsSceneWheelEvent *event)
{ {
if (!d->widget) { if (!d->widget) {
return; return;
} } else if (!d->canYFlick() && !d->canXFlick()) {
if (!d->canYFlick() && !d->canXFlick()) {
event->ignore(); event->ignore();
return; return;
} }