]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionsetrelativezero.cpp
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / actions / rs_actionsetrelativezero.cpp
index 14c6ff73adc5b8c1718e75f25587ab635db3d0c9..fc7484d4712d4775d17f75a23ab25d212555622d 100644 (file)
 #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);