aboutsummaryrefslogtreecommitdiffstats
path: root/examples/graphs/3d/widgetgraphgallery/scattergraph.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphs/3d/widgetgraphgallery/scattergraph.py')
-rw-r--r--examples/graphs/3d/widgetgraphgallery/scattergraph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/graphs/3d/widgetgraphgallery/scattergraph.py b/examples/graphs/3d/widgetgraphgallery/scattergraph.py
index 00b7fff69..1b5c507a9 100644
--- a/examples/graphs/3d/widgetgraphgallery/scattergraph.py
+++ b/examples/graphs/3d/widgetgraphgallery/scattergraph.py
@@ -25,8 +25,8 @@ class ScatterGraph(QObject):
hLayout = QHBoxLayout(self._scatterWidget)
scatterGraphWidget.setMinimumSize(minimum_graph_size)
scatterGraphWidget.setMaximumSize(maximum_graph_size)
- scatterGraphWidget.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
- scatterGraphWidget.setFocusPolicy(Qt.StrongFocus)
+ scatterGraphWidget.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
+ scatterGraphWidget.setFocusPolicy(Qt.FocusPolicy.StrongFocus)
hLayout.addWidget(scatterGraphWidget, 1)
vLayout = QVBoxLayout()
@@ -98,7 +98,7 @@ class ScatterGraph(QObject):
vLayout.addWidget(QLabel("Change theme"))
vLayout.addWidget(themeList)
vLayout.addWidget(QLabel("Adjust shadow quality"))
- vLayout.addWidget(shadowQuality, 1, Qt.AlignTop)
+ vLayout.addWidget(shadowQuality, 1, Qt.AlignmentFlag.AlignTop)
modifier = ScatterDataModifier(scatterGraph, self)