X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondrawlineangle.cpp;h=a71dbe8fb9797dace278e341d0abacab411cc1e5;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=188d8c41bbe491786632f0858169b8a7498085a6;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondrawlineangle.cpp b/src/actions/rs_actiondrawlineangle.cpp index 188d8c4..a71dbe8 100644 --- a/src/actions/rs_actiondrawlineangle.cpp +++ b/src/actions/rs_actiondrawlineangle.cpp @@ -15,11 +15,12 @@ #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();