gui: network_view: make network graph draggable through hand

This commit is contained in:
chelovechishko 2022-04-16 02:37:36 +09:00
parent a394e6db39
commit 0d7174225f

View File

@ -40,6 +40,7 @@ GraphWidget::GraphWidget(QWidget *)
setRenderHint(QPainter::Antialiasing);
setTransformationAnchor(AnchorUnderMouse);
setResizeAnchor(AnchorViewCenter);
setDragMode(QGraphicsView::ScrollHandDrag);
_friction_factor = 1.0f ;
scale(qreal(0.8), qreal(0.8));