]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actiondefault.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actiondefault.cpp
index 9159eee0eb2b27da4ae0ff6f4e385124c8818d55..e49edd8f877c09da642442a17cedaf8789d34b4b 100644 (file)
@@ -15,6 +15,7 @@
 #include "rs_actiondefault.h"
 
 #include "rs.h"
+#include "rs_commandevent.h"
 #include "rs_dialogfactory.h"
 #include "rs_line.h"
 #include "rs_modification.h"
@@ -25,7 +26,7 @@
 /**
  * Constructor.
  */
-RS_ActionDefault::RS_ActionDefault(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Default",
+RS_ActionDefault::RS_ActionDefault(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Default",
                container, graphicView)
 {
        RS_DEBUG->print("RS_ActionDefault::RS_ActionDefault");
@@ -166,7 +167,7 @@ void RS_ActionDefault::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionDefault::mousePressEvent(QMouseEvent * e)
 {
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {