git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4208 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-09-16 15:30:25 +00:00
parent 9ff728092b
commit 95a745ece5

View File

@@ -498,7 +498,7 @@ void DiagramView::mousePressEvent(QMouseEvent *e) {
if (e->button() == Qt::MidButton)
{
rubber_band_origin = e->pos();
setCursor(Qt::ClosedHandCursor);
viewport()->setCursor(Qt::ClosedHandCursor);
}
else QGraphicsView::mousePressEvent(e);
@@ -550,7 +550,7 @@ void DiagramView::mouseReleaseEvent(QMouseEvent *e) {
}
}
//Stop drag view
if (e -> button() == Qt::MidButton) setCursor(Qt::ArrowCursor);
if (e -> button() == Qt::MidButton) viewport()->setCursor(Qt::ArrowCursor);
else QGraphicsView::mouseReleaseEvent(e);
}