X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionzoomwindow.cpp;h=4f370eb48a14b15f031e2361a4c833a76a879280;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=5ef6118ba966f32972152a8139696d6ea98d964c;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionzoomwindow.cpp b/src/actions/rs_actionzoomwindow.cpp index 5ef6118..4f370eb 100644 --- a/src/actions/rs_actionzoomwindow.cpp +++ b/src/actions/rs_actionzoomwindow.cpp @@ -86,7 +86,7 @@ void RS_ActionZoomWindow::mouseMoveEvent(QMouseEvent * e) void RS_ActionZoomWindow::mousePressEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { switch (getStatus()) { @@ -107,14 +107,14 @@ void RS_ActionZoomWindow::mouseReleaseEvent(QMouseEvent * e) { RS_DEBUG->print("RS_ActionZoomWindow::mouseReleaseEvent()"); - if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + if (e->button() == Qt::RightButton) { if (getStatus() == 1) deletePreview(); init(getStatus() - 1); } - else if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + else if (e->button() == Qt::LeftButton) if (getStatus() == 1) { v2 = snapPoint(e);