]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actioninfodist2.cpp
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / actions / rs_actioninfodist2.cpp
index f051c92b7823f1406fbd894e6187e80eef47a3b2..c8cea153c7e6ae599a98c9dd81d0260c749cb6f6 100644 (file)
 #include "rs_actioninfodist2.h"
 
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
-RS_ActionInfoDist2::RS_ActionInfoDist2(RS_EntityContainer & container, RS_GraphicView & graphicView):
+RS_ActionInfoDist2::RS_ActionInfoDist2(RS_EntityContainer & container, GraphicView & graphicView):
        RS_PreviewActionInterface("Info Dist2", container, graphicView)
 {
 }
@@ -71,7 +71,7 @@ void RS_ActionInfoDist2::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionInfoDist2::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {
@@ -92,7 +92,7 @@ void RS_ActionInfoDist2::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();