X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionmodifytrim.cpp;h=a73ebfdc6854db89165a03cde1c17e6c4c0fd00c;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=611d0128fb3125f82b5e0b15aa3d34a377463a94;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionmodifytrim.cpp b/src/actions/rs_actionmodifytrim.cpp index 611d012..a73ebfd 100644 --- a/src/actions/rs_actionmodifytrim.cpp +++ b/src/actions/rs_actionmodifytrim.cpp @@ -98,7 +98,7 @@ void RS_ActionModifyTrim::mouseMoveEvent(QMouseEvent * e) void RS_ActionModifyTrim::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); @@ -129,7 +129,7 @@ void RS_ActionModifyTrim::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();