aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2/mainwindow.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-20 08:35:46 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-01-06 11:52:18 +0100
commit7189a4c5ec193d30c6bd4e68701038880cbc5982 (patch)
tree87e4ec00d7e9d31e5df0c11b155e46ffd3726362 /examples/opengl/hellogl2/mainwindow.py
parentab8b330123cb557f66306b237f4c3aa8c0004f39 (diff)
Use fully qualified enumerations in more examples
Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ic2c478ef363d73f65f366e21529c0429c86539aa Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/opengl/hellogl2/mainwindow.py')
-rw-r--r--examples/opengl/hellogl2/mainwindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/hellogl2/mainwindow.py b/examples/opengl/hellogl2/mainwindow.py
index d5fba7e26..ce00b66f5 100644
--- a/examples/opengl/hellogl2/mainwindow.py
+++ b/examples/opengl/hellogl2/mainwindow.py
@@ -14,9 +14,9 @@ class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
menuWindow = self.menuBar().addMenu("Window")
- menuWindow.addAction("Add new", QKeySequence(Qt.CTRL | Qt.Key_N),
+ menuWindow.addAction("Add new", QKeySequence(Qt.Modifier.CTRL | Qt.Key.Key_N),
self.onAddNew)
- menuWindow.addAction("Quit", QKeySequence(Qt.CTRL | Qt.Key_Q),
+ menuWindow.addAction("Quit", QKeySequence(Qt.Modifier.CTRL | Qt.Key.Key_Q),
qApp.closeAllWindows) # noqa: F821
self.onAddNew()