X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionmodifyscale.cpp;h=c8168f6e8a96f59357d3643f09416a335efb9d32;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=38e3a5b8c9a4638ff4e467e5aa41a5bddfe72173;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionmodifyscale.cpp b/src/actions/rs_actionmodifyscale.cpp index 38e3a5b..c8168f6 100644 --- a/src/actions/rs_actionmodifyscale.cpp +++ b/src/actions/rs_actionmodifyscale.cpp @@ -16,7 +16,7 @@ #include "rs_dialogfactory.h" -RS_ActionModifyScale::RS_ActionModifyScale(RS_EntityContainer & container, RS_GraphicView & graphicView): +RS_ActionModifyScale::RS_ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Scale Entities", container, graphicView) { @@ -65,7 +65,7 @@ void RS_ActionModifyScale::mouseMoveEvent(QMouseEvent * e) void RS_ActionModifyScale::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { Vector mouse = snapPoint(e); @@ -86,7 +86,7 @@ void RS_ActionModifyScale::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();