Skip to content

Commit

Permalink
- added right button for dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
aachenmax committed Aug 20, 2015
1 parent 6ec2774 commit 7fbd5e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions displaysplitwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ void DisplaySplitWidget::mousePressEvent(QMouseEvent* e)
selectionMode_ = SELECT;
break;
}
case Qt::RightButton:
case Qt::MiddleButton:
p_selectionStartPoint = e->pos();
selectionMode_ = DRAG;
Expand Down Expand Up @@ -548,6 +549,7 @@ void DisplaySplitWidget::mouseMoveEvent(QMouseEvent* e)

break;
}

case DRAG:
{
QRect currentView1=p_displayWidgets[LEFT_VIEW]->displayRect();
Expand Down

0 comments on commit 7fbd5e8

Please sign in to comment.