]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionmodifydeletefree.cpp
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / actions / rs_actionmodifydeletefree.cpp
index e7715ae0e20b9ec896853d5495964aa6db788644..2a4c8bb72dc6a2ec4515724c2584267ca47efeb5 100644 (file)
 #include "rs_actionmodifydeletefree.h"
 
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_modification.h"
 #include "rs_polyline.h"
 #include "rs_undo.h"
 
 RS_ActionModifyDeleteFree::RS_ActionModifyDeleteFree(
-       RS_EntityContainer & container, RS_GraphicView & graphicView):
+       RS_EntityContainer & container, GraphicView & graphicView):
        RS_ActionInterface("Delete Entities Freehand",
                container, graphicView)
 {
@@ -97,7 +97,7 @@ void RS_ActionModifyDeleteFree::trigger()
 
 void RS_ActionModifyDeleteFree::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       if (e->button() == Qt::RightButton)
                init(getStatus() - 1);
        else
        {