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