X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionsnapintersectionmanual.cpp;h=319e7ed1da0f45679ab089653eba54c9011dd62e;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=78330b5addc55dff8d9d67625c55c08f292d5de6;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionsnapintersectionmanual.cpp b/src/actions/rs_actionsnapintersectionmanual.cpp index 78330b5..319e7ed 100644 --- a/src/actions/rs_actionsnapintersectionmanual.cpp +++ b/src/actions/rs_actionsnapintersectionmanual.cpp @@ -122,7 +122,7 @@ void RS_ActionSnapIntersectionManual::mouseMoveEvent(QMouseEvent * e) void RS_ActionSnapIntersectionManual::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { Vector mouse = graphicView->toGraph(e->x(), e->y()); RS_Entity * se = catchEntity(e); @@ -148,7 +148,7 @@ void RS_ActionSnapIntersectionManual::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();