]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actioninfoarea.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actioninfoarea.cpp
index 34e16468e789d469313a396de1e672fb79472c65..ae2c2c3fb26e7915c8596f72be132de17b67c031 100644 (file)
 #include "rs_actioninfoarea.h"
 
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
-RS_ActionInfoArea::RS_ActionInfoArea(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Info Area",
+RS_ActionInfoArea::RS_ActionInfoArea(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Info Area",
                container, graphicView)
 {
 }
@@ -125,12 +125,12 @@ void RS_ActionInfoArea::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionInfoArea::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                Vector ce(snapPoint(e));
                coordinateEvent(&ce);
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                //deletePreview();
                //clearPreview();