aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/plot/plot.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/painting/plot/plot.py')
-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