X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actioninfoangle.cpp;h=31aa8fbff8560fe4fbc1c71fd59209b31e6d4b5b;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=c6fa7ddfc8b116816a698e5d4e155d6136e9abea;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actioninfoangle.cpp b/src/actions/rs_actioninfoangle.cpp index c6fa7dd..31aa8fb 100644 --- a/src/actions/rs_actioninfoangle.cpp +++ b/src/actions/rs_actioninfoangle.cpp @@ -15,10 +15,10 @@ #include "rs_actioninfoangle.h" #include "rs_dialogfactory.h" -#include "rs_graphicview.h" +#include "graphicview.h" #include "rs_information.h" -RS_ActionInfoAngle::RS_ActionInfoAngle(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Info Angle", +RS_ActionInfoAngle::RS_ActionInfoAngle(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Info Angle", container, graphicView) { } @@ -82,7 +82,7 @@ void RS_ActionInfoAngle::mouseMoveEvent(QMouseEvent * /*e*/) void RS_ActionInfoAngle::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { Vector mouse(graphicView->toGraphX(e->x()), graphicView->toGraphY(e->y())); @@ -115,7 +115,7 @@ void RS_ActionInfoAngle::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();