X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondrawlinetangent1.cpp;h=ed3703d2ca5286e6380f07a82f2d5021318aec03;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=a39f4dfc1fa6ba8933e2636209b3eb1e0b4ceacd;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondrawlinetangent1.cpp b/src/actions/rs_actiondrawlinetangent1.cpp index a39f4df..ed3703d 100644 --- a/src/actions/rs_actiondrawlinetangent1.cpp +++ b/src/actions/rs_actiondrawlinetangent1.cpp @@ -16,10 +16,10 @@ #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();