#include "rs_actionzoomwindow.h"
#include "rs_dialogfactory.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
#include "rs_preview.h"
/**
* area will be fit to the viewport.
*/
RS_ActionZoomWindow::RS_ActionZoomWindow(RS_EntityContainer & container,
- RS_GraphicView & graphicView, bool keepAspectRatio):
+ GraphicView & graphicView, bool keepAspectRatio):
RS_PreviewActionInterface("Zoom Window", container, graphicView)
{
this->keepAspectRatio = keepAspectRatio;
void RS_ActionZoomWindow::mousePressEvent(QMouseEvent * e)
{
- if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ if (e->button() == Qt::LeftButton)
{
switch (getStatus())
{
{
RS_DEBUG->print("RS_ActionZoomWindow::mouseReleaseEvent()");
- if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+ if (e->button() == Qt::RightButton)
{
if (getStatus() == 1)
deletePreview();
init(getStatus() - 1);
}
- else if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ else if (e->button() == Qt::LeftButton)
if (getStatus() == 1)
{
v2 = snapPoint(e);