mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Network: Fix edge delete whene there are multiple edge between two node.
This commit is contained in:
1 parent
9c5ea0bdd9
commit
0c0d7f3481
5 files changed
+22
-28
No files matched your search
@@ -457,9 +457,13 @@ class GraphWidget(QGraphicsView):
|
||||
self.m_origin_y = 0.0
|
||||
self.clicked = False
|
||||
|
||||
self.setup_scene(min_size, max_size, size)
|
||||
|
||||
def setup_scene(self, min_size, max_size, size):
|
||||
scene = QGraphicsScene(self)
|
||||
scene.setItemIndexMethod(QGraphicsScene.NoIndex)
|
||||
scene.setSceneRect(0, 0, 2000, 2000)
|
||||
|
||||
self.setScene(scene)
|
||||
self.setCacheMode(QGraphicsView.CacheBackground)
|
||||
self.setViewportUpdateMode(QGraphicsView.BoundingRectViewportUpdate)
|
||||
|
||||
Reference in new issue
Block a user