mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4208 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -498,7 +498,7 @@ void DiagramView::mousePressEvent(QMouseEvent *e) {
|
|||||||
if (e->button() == Qt::MidButton)
|
if (e->button() == Qt::MidButton)
|
||||||
{
|
{
|
||||||
rubber_band_origin = e->pos();
|
rubber_band_origin = e->pos();
|
||||||
setCursor(Qt::ClosedHandCursor);
|
viewport()->setCursor(Qt::ClosedHandCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
else QGraphicsView::mousePressEvent(e);
|
else QGraphicsView::mousePressEvent(e);
|
||||||
@@ -550,7 +550,7 @@ void DiagramView::mouseReleaseEvent(QMouseEvent *e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Stop drag view
|
//Stop drag view
|
||||||
if (e -> button() == Qt::MidButton) setCursor(Qt::ArrowCursor);
|
if (e -> button() == Qt::MidButton) viewport()->setCursor(Qt::ArrowCursor);
|
||||||
|
|
||||||
else QGraphicsView::mouseReleaseEvent(e);
|
else QGraphicsView::mouseReleaseEvent(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user