X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondefault.cpp;h=e49edd8f877c09da642442a17cedaf8789d34b4b;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=9159eee0eb2b27da4ae0ff6f4e385124c8818d55;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondefault.cpp b/src/actions/rs_actiondefault.cpp index 9159eee..e49edd8 100644 --- a/src/actions/rs_actiondefault.cpp +++ b/src/actions/rs_actiondefault.cpp @@ -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()) {