X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondimdiametric.cpp;h=ce4757055d41e86f7be761f56fd7062537aa8dea;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=07bfa2b503a1e5fe1b9aac8e9b0bb637f04dec89;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondimdiametric.cpp b/src/actions/rs_actiondimdiametric.cpp index 07bfa2b..ce47570 100644 --- a/src/actions/rs_actiondimdiametric.cpp +++ b/src/actions/rs_actiondimdiametric.cpp @@ -144,7 +144,7 @@ void RS_ActionDimDiametric::mouseMoveEvent(QMouseEvent * e) void RS_ActionDimDiametric::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { switch (getStatus()) { @@ -185,7 +185,7 @@ void RS_ActionDimDiametric::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();