only capture the left clicks

CCBUG:240215

svn path=/trunk/KDE/kdelibs/; revision=1133494
This commit is contained in:
Aaron J. Seigo 2010-06-01 20:42:24 +00:00
parent ff45696e8b
commit bbc72390b9

View File

@ -635,6 +635,7 @@ public:
velocity = QPointF();
stopAnimations();
}
void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event)
{
if (lastPosTime.isNull())
@ -1327,7 +1328,12 @@ void ScrollWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
}
d->handleMousePressEvent(event);
event->accept();
if (event->button() == Qt::LeftButton) {
event->accept();
} else {
QGraphicsWidget::mousePressEvent(event);
}
}
void ScrollWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)