X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondrawlineangle.cpp;h=cf2540150ce9afd28ebfbb1db8fe7c2e63fe1f3b;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=188d8c41bbe491786632f0858169b8a7498085a6;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondrawlineangle.cpp b/src/actions/rs_actiondrawlineangle.cpp index 188d8c4..cf25401 100644 --- a/src/actions/rs_actiondrawlineangle.cpp +++ b/src/actions/rs_actiondrawlineangle.cpp @@ -98,7 +98,7 @@ void RS_ActionDrawLineAngle::mouseMoveEvent(QMouseEvent * e) void RS_ActionDrawLineAngle::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { if (getStatus() == SetPos) { @@ -106,7 +106,7 @@ void RS_ActionDrawLineAngle::mouseReleaseEvent(QMouseEvent * e) coordinateEvent(&ce); } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();