]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionzoomwindow.cpp
Scrubbed out all references to RS2::qtToRsButton(). Gone!
[architektonas] / src / actions / rs_actionzoomwindow.cpp
index 5ef6118ba966f32972152a8139696d6ea98d964c..4f370eb48a14b15f031e2361a4c833a76a879280 100644 (file)
@@ -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);