]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionmodifyround.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionmodifyround.cpp
index 67c0503bd50107087a6ed501e1dca6946cc2edd4..530ddfab42e48a283af7e8493b4e9eaf52e3d1fc 100644 (file)
 
 #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();