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);