X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionzoompan.cpp;h=7e788de415e4aa6a140a88906e1aaf9e064e455e;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=0795666a671f4f59d09513a133a221f700fa6160;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionzoompan.cpp b/src/actions/rs_actionzoompan.cpp index 0795666..7e788de 100644 --- a/src/actions/rs_actionzoompan.cpp +++ b/src/actions/rs_actionzoompan.cpp @@ -62,8 +62,8 @@ void RS_ActionZoomPan::mouseMoveEvent(QMouseEvent * e) 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(); @@ -74,9 +74,9 @@ void RS_ActionZoomPan::mousePressEvent(QMouseEvent * e) 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);