X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionprintpreview.cpp;h=c3f274c8546fdacc44f556d98fe66f82802e49b6;hb=be33e866f2121c48db93e06d743c5ae3826c1948;hp=e280e57116d2d5ad68b7f9c293b6e33ca1b03da4;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actionprintpreview.cpp b/src/actions/rs_actionprintpreview.cpp index e280e57..c3f274c 100644 --- a/src/actions/rs_actionprintpreview.cpp +++ b/src/actions/rs_actionprintpreview.cpp @@ -16,12 +16,12 @@ #include "rs_dialogfactory.h" #include "drawing.h" -#include "rs_graphicview.h" +#include "graphicview.h" /** * Constructor. */ -RS_ActionPrintPreview::RS_ActionPrintPreview(RS_EntityContainer & container, RS_GraphicView & graphicView): +RS_ActionPrintPreview::RS_ActionPrintPreview(RS_EntityContainer & container, GraphicView & graphicView): RS_ActionInterface("Print Preview", container, graphicView) { @@ -73,7 +73,7 @@ void RS_ActionPrintPreview::mouseMoveEvent(QMouseEvent * e) void RS_ActionPrintPreview::mousePressEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { switch (getStatus()) { @@ -99,9 +99,7 @@ void RS_ActionPrintPreview::mouseReleaseEvent(QMouseEvent * e) default: //deleteSnapper(); RS_DIALOGFACTORY->requestPreviousMenu(); -#if QT_VERSION >= 0x030000 e->accept(); -#endif break; } }