aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-06 09:30:45 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-06 13:48:22 +0100
commit683314b3491dea17f0205baa2976e71595ccb05d (patch)
tree355d8f064d36578e169857f2fa83050965740d01 /examples/widgets
parent4a8b8e3dc45f1067a7f75e5f7ce95d8e639d530a (diff)
Add reserve()/capacity() to contiguous opaque containers
Generate bindings for reserve()/capacity() if the container supports it. [ChangeLog][shiboken6] Bindings for reserve()/capacity() were added to contiguous opaque containers. Task-number: PYSIDE-1605 Pick-to: 6.2 Change-Id: I82dd2efc4a1831600aa2fae9427e5d13a67cdd11 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/widgets')
-rw-r--r--examples/widgets/painting/plot/plot.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/painting/plot/plot.py b/examples/widgets/painting/plot/plot.py
index 156a6408d..a125c3253 100644
--- a/examples/widgets/painting/plot/plot.py
+++ b/examples/widgets/painting/plot/plot.py
@@ -63,6 +63,7 @@ class PlotWidget(QWidget):
self._timer.timeout.connect(self.shift)
self._points = QPointList()
+ self._points.reserve(WIDTH)
self._x = 0
self._delta_x = 0.05
self._half_height = HEIGHT / 2