]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actioninfodist.cpp
Scrubbed out all references to RS2::qtToRsButton(). Gone!
[architektonas] / src / actions / rs_actioninfodist.cpp
index 2c3a6ad07fde133705850742ff8f9889d1c8e078..a63ea037d9f3d2da821e360f11a3097755ae5445 100644 (file)
@@ -86,12 +86,12 @@ void RS_ActionInfoDist::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionInfoDist::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                Vector ce(snapPoint(e));
                coordinateEvent(&ce);
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();