void RS_ActionZoomPan::mousePressEvent(QMouseEvent * e)
{
- if (RS2::qtToRsButtonState(e->button()) == RS2::MidButton
- || RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ if (e->button() == Qt::MidButton
+ || e->button() == Qt::LeftButton)
{
//v1 = snapPoint(e);
x1 = e->x();
void RS_ActionZoomPan::mouseReleaseEvent(QMouseEvent * e)
{
- if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+ if (e->button() == Qt::RightButton)
init(getStatus() - 1);
- else if (RS2::qtToRsButtonState(e->button()) == RS2::MidButton)
+ else if (e->button() == Qt::MidButton)
init(-1);
else
setStatus(0);