X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondrawarctangential.cpp;h=1bdc1350e51a0f41310145ee70aff16650c72101;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=25d52bc3774914a2d9648fd28ac40b1d9129e192;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondrawarctangential.cpp b/src/actions/rs_actiondrawarctangential.cpp index 25d52bc..1bdc135 100644 --- a/src/actions/rs_actiondrawarctangential.cpp +++ b/src/actions/rs_actiondrawarctangential.cpp @@ -14,11 +14,12 @@ #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();