aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/plot/plot.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-17 16:49:50 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-18 16:15:45 +0100
commit1f26c800e0dff519b89418aaed4395d5497486df (patch)
tree1e5d7df257da6e2746353290962873c400b2720a /examples/widgets/painting/plot/plot.py
parentd27ad166e888c52e5ec77eb9db85bf7da2ed9ddc (diff)
Widget examples: Use fully qualified enumerations
Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: I99890e66ff29600072175185f471be0d7646c45b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/widgets/painting/plot/plot.py')
-rw-r--r--examples/widgets/painting/plot/plot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/painting/plot/plot.py b/examples/widgets/painting/plot/plot.py
index d437309d0..5e564511f 100644
--- a/examples/widgets/painting/plot/plot.py
+++ b/examples/widgets/painting/plot/plot.py
@@ -53,7 +53,7 @@ class PlotWidget(QWidget):
def paintEvent(self, event):
with QPainter(self) as painter:
rect = QRect(QPoint(0, 0), self.size())
- painter.fillRect(rect, Qt.white)
+ painter.fillRect(rect, Qt.GlobalColor.white)
painter.translate(-self._points[0].x(), 0)
painter.drawPolyline(self._points)