]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionlibraryinsert.cpp
Scrubbed out all references to RS2::qtToRsButton(). Gone!
[architektonas] / src / actions / rs_actionlibraryinsert.cpp
index 4fdab2ff80b04d5a1efdcb2a0574b17af57a7dd6..2447d8f9d89a63aa76e5eda436359ec6b01cb352 100644 (file)
@@ -124,12 +124,12 @@ void RS_ActionLibraryInsert::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionLibraryInsert::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)
        {
                deleteSnapper();
                init(getStatus() - 1);