only capture the left clicks
CCBUG:240215 svn path=/trunk/KDE/kdelibs/; revision=1133494
This commit is contained in:
parent
ff45696e8b
commit
bbc72390b9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user