aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2022-09-01 08:15:19 +0300
committerSimo Fält <simo.falt@qt.io>2022-09-01 08:15:19 +0300
commit789fc5d65d2e0ba95cda25e63f74dd4def87a775 (patch)
tree28019fcbb368b64fad68d930a2587ee22092d71b /examples/widgets/graphicsview/elasticnodes/elasticnodes.py
parent54a301d83910a760ff7f7aa5bea1e3c3d7226bc8 (diff)
parent0ad10f40c9cdbe6d054b6e7ffd60d14846a1d4aa (diff)
Merge remote-tracking branch 'origin/6.3' into wip/6.3_pypy
Diffstat (limited to 'examples/widgets/graphicsview/elasticnodes/elasticnodes.py')
-rw-r--r--examples/widgets/graphicsview/elasticnodes/elasticnodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/elasticnodes/elasticnodes.py b/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
index 8d0fcf0f3..201c35f0a 100644
--- a/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
+++ b/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
@@ -167,7 +167,7 @@ class Node(QGraphicsItem):
self._new_pos = QPointF()
self.setFlag(QGraphicsItem.ItemIsMovable)
self.setFlag(QGraphicsItem.ItemSendsGeometryChanges)
- self.setCacheMode(self.DeviceCoordinateCache)
+ self.setCacheMode(QGraphicsItem.DeviceCoordinateCache)
self.setZValue(-1)
def item_type(self):