* @param both Trim both entities.
*/
RS_ActionModifyTrim::RS_ActionModifyTrim(RS_EntityContainer & container,
- RS_GraphicView & graphicView, bool both): RS_PreviewActionInterface("Trim Entity",
+ GraphicView & graphicView, bool both): RS_PreviewActionInterface("Trim Entity",
container, graphicView)
{
trimEntity = NULL;
void RS_ActionModifyTrim::mouseReleaseEvent(QMouseEvent * e)
{
- if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ if (e->button() == Qt::LeftButton)
{
Vector mouse = graphicView->toGraph(e->x(), e->y());
RS_Entity * se = catchEntity(e);
break;
}
}
- else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+ else if (e->button() == Qt::RightButton)
{
deletePreview();
deleteSnapper();