]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionselectintersected.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionselectintersected.cpp
index dc158d5c4cee3596d11023ac9adee1531d050e86..240c4da4faa04faa944d76884d3cafd02c0396e2 100644 (file)
@@ -24,7 +24,7 @@
  * @param select true: select window. false: deselect window
  */
 RS_ActionSelectIntersected::RS_ActionSelectIntersected(
-       RS_EntityContainer & container, RS_GraphicView & graphicView, bool select):
+       RS_EntityContainer & container, GraphicView & graphicView, bool select):
        RS_PreviewActionInterface("Select Intersected", container, graphicView)
 {
        this->select = select;
@@ -83,7 +83,7 @@ void RS_ActionSelectIntersected::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionSelectIntersected::mousePressEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {
@@ -105,14 +105,14 @@ void RS_ActionSelectIntersected::mouseReleaseEvent(QMouseEvent * e)
 {
        RS_DEBUG->print("RS_ActionSelectIntersected::mouseReleaseEvent()");
 
-       if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       if (e->button() == Qt::RightButton)
        {
                if (getStatus() == SetPoint2)
                        deletePreview();
                deleteSnapper();
                init(getStatus() - 1);
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       else if (e->button() == Qt::LeftButton)
                if (getStatus() == SetPoint2)
                {
                        v2 = snapPoint(e);