git-svn-id: svn://db.shs.com.ru/libs@419 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user