]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionmodifytrimamount.cpp
Scrubbed out all references to RS2::qtToRsButton(). Gone!
[architektonas] / src / actions / rs_actionmodifytrimamount.cpp
index 65666c82c203f99af5ff0395ef42a0602e69920b..c28031eed655e87f4bcbbbb563f01258d1640e31 100644 (file)
@@ -65,7 +65,7 @@ void RS_ActionModifyTrimAmount::mouseReleaseEvent(QMouseEvent * e)
        trimCoord = graphicView->toGraph(e->x(), e->y());
        trimEntity = catchEntity(e);
 
-       if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+       if (e->button() == Qt::LeftButton)
        {
                switch (getStatus())
                {
@@ -93,7 +93,7 @@ void RS_ActionModifyTrimAmount::mouseReleaseEvent(QMouseEvent * e)
                        break;
                }
        }
-       else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+       else if (e->button() == Qt::RightButton)
        {
                deleteSnapper();
                init(getStatus() - 1);