#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)
{
void RS_ActionPrintPreview::mousePressEvent(QMouseEvent * e)
{
- if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ if (e->button() == Qt::LeftButton)
{
switch (getStatus())
{
default:
//deleteSnapper();
RS_DIALOGFACTORY->requestPreviousMenu();
-#if QT_VERSION >= 0x030000
e->accept();
-#endif
break;
}
}