]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actiondrawarctangential.cpp
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / actions / rs_actiondrawarctangential.cpp
index 25d52bc3774914a2d9648fd28ac40b1d9129e192..1bdc1350e51a0f41310145ee70aff16650c72101 100644 (file)
 
 #include "rs_actiondrawarctangential.h"
 
+#include "rs_commandevent.h"
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
-RS_ActionDrawArcTangential::RS_ActionDrawArcTangential(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Draw arcs tangential",
+RS_ActionDrawArcTangential::RS_ActionDrawArcTangential(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Draw arcs tangential",
                container, graphicView)
 {
        reset();
@@ -135,7 +136,7 @@ void RS_ActionDrawArcTangential::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionDrawArcTangential::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {
@@ -176,7 +177,7 @@ void RS_ActionDrawArcTangential::mouseReleaseEvent(QMouseEvent * e)
                break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();