]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actiondrawlineangle.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actiondrawlineangle.cpp
index 188d8c41bbe491786632f0858169b8a7498085a6..a71dbe8fb9797dace278e341d0abacab411cc1e5 100644 (file)
 
 #include "rs_actiondrawlineangle.h"
 
+#include "rs_commandevent.h"
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
-RS_ActionDrawLineAngle::RS_ActionDrawLineAngle(RS_EntityContainer & container, RS_GraphicView & graphicView, double angle, bool fixedAngle):
+RS_ActionDrawLineAngle::RS_ActionDrawLineAngle(RS_EntityContainer & container, GraphicView & graphicView, double angle, bool fixedAngle):
        RS_PreviewActionInterface("Draw lines with given angle",
                container, graphicView)
 {
@@ -98,7 +99,7 @@ void RS_ActionDrawLineAngle::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionDrawLineAngle::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                if (getStatus() == SetPos)
                {
@@ -106,7 +107,7 @@ void RS_ActionDrawLineAngle::mouseReleaseEvent(QMouseEvent * e)
                        coordinateEvent(&ce);
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();