X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionmodifyround.cpp;h=530ddfab42e48a283af7e8493b4e9eaf52e3d1fc;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=67c0503bd50107087a6ed501e1dca6946cc2edd4;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionmodifyround.cpp b/src/actions/rs_actionmodifyround.cpp index 67c0503..530ddfa 100644 --- a/src/actions/rs_actionmodifyround.cpp +++ b/src/actions/rs_actionmodifyround.cpp @@ -14,11 +14,12 @@ #include "rs_actionmodifyround.h" +#include "rs_commandevent.h" #include "rs_dialogfactory.h" #include "rs_information.h" #include "rs_preview.h" -RS_ActionModifyRound::RS_ActionModifyRound(RS_EntityContainer & container, RS_GraphicView & graphicView): +RS_ActionModifyRound::RS_ActionModifyRound(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Round Entities", container, graphicView) { entity1 = NULL; @@ -136,7 +137,7 @@ void RS_ActionModifyRound::mouseReleaseEvent(QMouseEvent * e) Vector mouse = graphicView->toGraph(e->x(), e->y()); RS_Entity * se = catchEntity(e, RS2::ResolveAll); - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { switch (getStatus()) { @@ -163,7 +164,7 @@ void RS_ActionModifyRound::mouseReleaseEvent(QMouseEvent * e) break; } } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deletePreview(); deleteSnapper();