X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondimdiametric.cpp;h=80264c5439740745c36942a8352ee2f668886090;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=07bfa2b503a1e5fe1b9aac8e9b0bb637f04dec89;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondimdiametric.cpp b/src/actions/rs_actiondimdiametric.cpp index 07bfa2b..80264c5 100644 --- a/src/actions/rs_actiondimdiametric.cpp +++ b/src/actions/rs_actiondimdiametric.cpp @@ -14,11 +14,12 @@ #include "rs_actiondimdiametric.h" -#include "rs_graphicview.h" +#include "rs_commandevent.h" #include "rs_dialogfactory.h" +#include "graphicview.h" #include "rs_preview.h" -RS_ActionDimDiametric::RS_ActionDimDiametric(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_ActionDimension("Draw Diametric Dimensions", +RS_ActionDimDiametric::RS_ActionDimDiametric(RS_EntityContainer & container, GraphicView & graphicView): RS_ActionDimension("Draw Diametric Dimensions", container, graphicView) { reset(); @@ -144,7 +145,7 @@ void RS_ActionDimDiametric::mouseMoveEvent(QMouseEvent * e) void RS_ActionDimDiametric::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { switch (getStatus()) { @@ -185,7 +186,7 @@ void RS_ActionDimDiametric::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();