X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionsetrelativezero.cpp;h=fc7484d4712d4775d17f75a23ab25d212555622d;hb=27d4a138d23453e93a833e9347444b828a971cb4;hp=14c6ff73adc5b8c1718e75f25587ab635db3d0c9;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionsetrelativezero.cpp b/src/actions/rs_actionsetrelativezero.cpp index 14c6ff7..fc7484d 100644 --- a/src/actions/rs_actionsetrelativezero.cpp +++ b/src/actions/rs_actionsetrelativezero.cpp @@ -15,10 +15,10 @@ #include "rs_actionsetrelativezero.h" #include "rs_dialogfactory.h" -#include "rs_graphicview.h" +#include "graphicview.h" RS_ActionSetRelativeZero::RS_ActionSetRelativeZero(RS_EntityContainer & container, - RS_GraphicView & graphicView): RS_PreviewActionInterface("Set the relative Zero", + GraphicView & graphicView): RS_PreviewActionInterface("Set the relative Zero", container, graphicView) { } @@ -52,7 +52,7 @@ void RS_ActionSetRelativeZero::mouseMoveEvent(QMouseEvent * e) void RS_ActionSetRelativeZero::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + if (e->button() == Qt::RightButton) { deleteSnapper(); init(getStatus() - 1);