]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionmodifycut.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionmodifycut.cpp
index 54c721469764c25b1a24bd8e2624d9c3458ce9e2..1fa53a6261d8fd2c46adcb4fd45a3dec237a40cd 100644 (file)
 #include "rs_actionmodifycut.h"
 
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_modification.h"
 
 RS_ActionModifyCut::RS_ActionModifyCut(RS_EntityContainer & container,
-       RS_GraphicView & graphicView): RS_ActionInterface("Cut Entity",
+       GraphicView & graphicView): RS_ActionInterface("Cut Entity",
                container, graphicView)
 {
        cutEntity = NULL;
@@ -78,7 +78,7 @@ void RS_ActionModifyCut::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionModifyCut::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {
@@ -123,7 +123,7 @@ void RS_ActionModifyCut::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deleteSnapper();