ignore mouse press as well if isn't possible to flick
svn path=/trunk/KDE/kdelibs/; revision=1207046
This commit is contained in:
parent
e2f5428044
commit
3ad1f7887a
@ -1373,6 +1373,9 @@ void ScrollWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (!d->widget) {
|
||||
return;
|
||||
} else if (!d->canYFlick() && !d->canXFlick()) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
d->handleMousePressEvent(event);
|
||||
@ -1398,8 +1401,7 @@ void ScrollWidget::wheelEvent(QGraphicsSceneWheelEvent *event)
|
||||
{
|
||||
if (!d->widget) {
|
||||
return;
|
||||
}
|
||||
if (!d->canYFlick() && !d->canXFlick()) {
|
||||
} else if (!d->canYFlick() && !d->canXFlick()) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user