From 0d7174225f20a364b3e1c2d9f4f91d452df2bf07 Mon Sep 17 00:00:00 2001 From: chelovechishko Date: Sat, 16 Apr 2022 02:37:36 +0900 Subject: [PATCH] gui: network_view: make network graph draggable through hand --- retroshare-gui/src/gui/elastic/graphwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/retroshare-gui/src/gui/elastic/graphwidget.cpp b/retroshare-gui/src/gui/elastic/graphwidget.cpp index d0f90050f..f4ce104af 100644 --- a/retroshare-gui/src/gui/elastic/graphwidget.cpp +++ b/retroshare-gui/src/gui/elastic/graphwidget.cpp @@ -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));