* @param select true: select window. false: deselect window
*/
RS_ActionSelectIntersected::RS_ActionSelectIntersected(
- RS_EntityContainer & container, RS_GraphicView & graphicView, bool select):
+ RS_EntityContainer & container, GraphicView & graphicView, bool select):
RS_PreviewActionInterface("Select Intersected", container, graphicView)
{
this->select = select;
void RS_ActionSelectIntersected::mousePressEvent(QMouseEvent * e)
{
- if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ if (e->button() == Qt::LeftButton)
{
switch (getStatus())
{
{
RS_DEBUG->print("RS_ActionSelectIntersected::mouseReleaseEvent()");
- if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+ if (e->button() == Qt::RightButton)
{
if (getStatus() == SetPoint2)
deletePreview();
deleteSnapper();
init(getStatus() - 1);
}
- else if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+ else if (e->button() == Qt::LeftButton)
if (getStatus() == SetPoint2)
{
v2 = snapPoint(e);