]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionselect.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionselect.cpp
index 88d73b7ec6cc6e2e4b0e126c09aa9ece73b67a4f..1fe684a39549a57acbb3b7228d8d6be4d64d96fc 100644 (file)
@@ -16,9 +16,9 @@
 
 #include "rs_actionselectsingle.h"
 #include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 
-RS_ActionSelect::RS_ActionSelect(RS_EntityContainer & container, RS_GraphicView & graphicView, RS2::ActionType nextAction):
+RS_ActionSelect::RS_ActionSelect(RS_EntityContainer & container, GraphicView & graphicView, RS2::ActionType nextAction):
        RS_ActionInterface("Select Entities", container, graphicView)
 {
        this->nextAction = nextAction;
@@ -36,7 +36,7 @@ void RS_ActionSelect::init(int status)
 
 void RS_ActionSelect::mouseReleaseEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       if (e->button() == Qt::RightButton)
                init(getStatus() - 1);
 }