]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionsnapintersectionmanual.cpp
Scrubbed out all references to RS2::qtToRsButton(). Gone!
[architektonas] / src / actions / rs_actionsnapintersectionmanual.cpp
index 78330b5addc55dff8d9d67625c55c08f292d5de6..319e7ed1da0f45679ab089653eba54c9011dd62e 100644 (file)
@@ -122,7 +122,7 @@ void RS_ActionSnapIntersectionManual::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionSnapIntersectionManual::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                Vector mouse = graphicView->toGraph(e->x(), e->y());
                RS_Entity * se = catchEntity(e);
@@ -148,7 +148,7 @@ void RS_ActionSnapIntersectionManual::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();