X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionblockscreate.cpp;h=30e7a397c7abdfc82c94992e64ea174ff844329d;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=083f2fe4e4588f25b3beea28b6ab8077e880120f;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionblockscreate.cpp b/src/actions/rs_actionblockscreate.cpp index 083f2fe..30e7a39 100644 --- a/src/actions/rs_actionblockscreate.cpp +++ b/src/actions/rs_actionblockscreate.cpp @@ -17,13 +17,14 @@ #include "rs_creation.h" #include "rs_dialogfactory.h" +#include "graphicview.h" #include "rs_insert.h" #include "rs_modification.h" /** * Constructor. */ -RS_ActionBlocksCreate::RS_ActionBlocksCreate(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Blocks Create", container, graphicView) +RS_ActionBlocksCreate::RS_ActionBlocksCreate(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Blocks Create", container, graphicView) { referencePoint = Vector(false); } @@ -117,7 +118,7 @@ void RS_ActionBlocksCreate::mouseMoveEvent(QMouseEvent * e) void RS_ActionBlocksCreate::mouseReleaseEvent(QMouseEvent * e) { -// if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) +// if (e->button() == Qt::LeftButton) if (e->button() == Qt::LeftButton) { // Vector ce(snapPoint(e)); @@ -125,7 +126,7 @@ void RS_ActionBlocksCreate::mouseReleaseEvent(QMouseEvent * e) Vector ce(snapPoint(e)); coordinateEvent(&ce); } -// else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) +// else if (e->button() == Qt::RightButton) else if (e->button() == Qt::RightButton) { deleteSnapper();