]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionmodifyscale.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionmodifyscale.cpp
index 38e3a5b8c9a4638ff4e467e5aa41a5bddfe72173..c8168f6e8a96f59357d3643f09416a335efb9d32 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "rs_dialogfactory.h"
 
-RS_ActionModifyScale::RS_ActionModifyScale(RS_EntityContainer & container, RS_GraphicView & graphicView):
+RS_ActionModifyScale::RS_ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView):
        RS_PreviewActionInterface("Scale Entities",
                container, graphicView)
 {
@@ -65,7 +65,7 @@ void RS_ActionModifyScale::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionModifyScale::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                Vector mouse = snapPoint(e);
 
@@ -86,7 +86,7 @@ void RS_ActionModifyScale::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();