]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actiondrawlinetangent1.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actiondrawlinetangent1.cpp
index a39f4dfc1fa6ba8933e2636209b3eb1e0b4ceacd..ed3703d2ca5286e6380f07a82f2d5021318aec03 100644 (file)
 
 #include "rs_creation.h"
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
-RS_ActionDrawLineTangent1::RS_ActionDrawLineTangent1(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Draw Tangents 1",
+RS_ActionDrawLineTangent1::RS_ActionDrawLineTangent1(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Draw Tangents 1",
                container, graphicView)
 {
        tangent = NULL;
@@ -118,7 +118,7 @@ void RS_ActionDrawLineTangent1::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionDrawLineTangent1::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       if (e->button() == Qt::RightButton)
        {
                deletePreview();
                clearPreview();