git-svn-id: svn://db.shs.com.ru/libs@419 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-08-30 12:26:10 +00:00
parent 608a47d776
commit c55c8bf3ad

View File

@@ -650,13 +650,14 @@ void BlockView::wheelEvent(QWheelEvent * e) {
void BlockView::mousePressEvent(QMouseEvent * event) {
press_point = event->pos();
QGraphicsView::mousePressEvent(event);
if (event->buttons().testFlag(Qt::MidButton)) setCursor(Qt::ClosedHandCursor);
QGraphicsView::mousePressEvent(event);
}
void BlockView::mouseReleaseEvent(QMouseEvent * event) {
unsetCursor();
QGraphicsView::mouseReleaseEvent(event);
}