]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actiondimdiametric.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actiondimdiametric.cpp
index 07bfa2b503a1e5fe1b9aac8e9b0bb637f04dec89..80264c5439740745c36942a8352ee2f668886090 100644 (file)
 
 #include "rs_actiondimdiametric.h"
 
-#include "rs_graphicview.h"
+#include "rs_commandevent.h"
 #include "rs_dialogfactory.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
-RS_ActionDimDiametric::RS_ActionDimDiametric(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_ActionDimension("Draw Diametric Dimensions",
+RS_ActionDimDiametric::RS_ActionDimDiametric(RS_EntityContainer & container, GraphicView & graphicView): RS_ActionDimension("Draw Diametric Dimensions",
                container, graphicView)
 {
        reset();
@@ -144,7 +145,7 @@ void RS_ActionDimDiametric::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionDimDiametric::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {
@@ -185,7 +186,7 @@ void RS_ActionDimDiametric::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deletePreview();
                deleteSnapper();