]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionmodifytrim.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionmodifytrim.cpp
index 611d0128fb3125f82b5e0b15aa3d34a377463a94..6ba19eabfe88cb3de854b1de4e7b48d324c88bd6 100644 (file)
@@ -21,7 +21,7 @@
  * @param both Trim both entities.
  */
 RS_ActionModifyTrim::RS_ActionModifyTrim(RS_EntityContainer & container,
-       RS_GraphicView & graphicView, bool both): RS_PreviewActionInterface("Trim Entity",
+       GraphicView & graphicView, bool both): RS_PreviewActionInterface("Trim Entity",
                container, graphicView)
 {
        trimEntity = NULL;
@@ -98,7 +98,7 @@ void RS_ActionModifyTrim::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionModifyTrim::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);
@@ -129,7 +129,7 @@ void RS_ActionModifyTrim::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();