X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionselectintersected.cpp;h=240c4da4faa04faa944d76884d3cafd02c0396e2;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=dc158d5c4cee3596d11023ac9adee1531d050e86;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionselectintersected.cpp b/src/actions/rs_actionselectintersected.cpp index dc158d5..240c4da 100644 --- a/src/actions/rs_actionselectintersected.cpp +++ b/src/actions/rs_actionselectintersected.cpp @@ -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);