diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-08-19 11:03:42 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-08-19 13:25:40 +0200 |
commit | 81c0c6d8ca57485cdaec68474fc879416f8fbecb (patch) | |
tree | f6278c021fc08749eb449aafa8bb22cc3d61f4b1 /examples/widgets | |
parent | efa8b516574357d15bb33de3640638b826038b75 (diff) |
Fix some bitrot in examples
examples/widgets/graphicsview/elasticnodes/elasticnodes.py", line 132, in __init__
self.setCacheMode(self.DeviceCoordinateCache)
AttributeError: 'Node' object has no attribute 'DeviceCoordinateCache'
examples/charts/chartthemes/main.py:137: DeprecationWarning: Function: 'QXYSeries.pointsVector() const' is marked as deprecated
points = lower_series.pointsVector()
examples/charts/chartthemes/main.py:148: DeprecationWarning: Function: 'QChart.axisX(QAbstractSeries * series) const' is marked as deprecated
chart.axisX().setRange(0, self.value_count - 1)
examples/charts/percentbarchart/percentbarchart.py:46: DeprecationWarning: Function: 'QChart.setAxisX(QAbstractAxis * axis, QAbstractSeries * series)' is marked as deprecated
chart.setAxisX(axis, series)
Pick-to: 6.3 6.2
Task-number: PYSIDE-841
Change-Id: Ifc7a539f547b5986055a56b98d59ca00c5b51e19
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/widgets')
-rw-r--r-- | examples/widgets/graphicsview/elasticnodes/elasticnodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/elasticnodes/elasticnodes.py b/examples/widgets/graphicsview/elasticnodes/elasticnodes.py index b2f9eb067..d19f83958 100644 --- a/examples/widgets/graphicsview/elasticnodes/elasticnodes.py +++ b/examples/widgets/graphicsview/elasticnodes/elasticnodes.py @@ -129,7 +129,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): |