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