]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actioninfoangle.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actioninfoangle.cpp
index c6fa7ddfc8b116816a698e5d4e155d6136e9abea..31aa8fbff8560fe4fbc1c71fd59209b31e6d4b5b 100644 (file)
 #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();