aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/cannon/t14.py
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2022-10-05 11:19:04 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2022-10-06 06:34:00 +0000
commit23374ffc4215c2492d52a2d3b34c1dd7af61afb2 (patch)
tree115eeff447a90b9db5127e65a4119cbb74e051e4 /examples/widgets/tutorials/cannon/t14.py
parente1a2fd9524578f4f4e27eb92a8646f7d53a4c1b8 (diff)
examples: adapt widgets examples
Fixing issues related to deprecated methods, Enums, and more. Pick-to: 6.3 Change-Id: I07be29601f0ad257f5fcfb0a5bc4891cb7f9648c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/tutorials/cannon/t14.py')
-rw-r--r--examples/widgets/tutorials/cannon/t14.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/tutorials/cannon/t14.py b/examples/widgets/tutorials/cannon/t14.py
index 50b1d4c9f..e4f1c350d 100644
--- a/examples/widgets/tutorials/cannon/t14.py
+++ b/examples/widgets/tutorials/cannon/t14.py
@@ -341,7 +341,7 @@ class GameBoard(QWidget):
QShortcut(QKeySequence(Qt.Key_Enter), self, self.fire)
QShortcut(QKeySequence(Qt.Key_Return), self, self.fire)
- QShortcut(QKeySequence(Qt.CTRL + Qt.Key_Q), self, self.close)
+ QShortcut(QKeySequence(Qt.CTRL | Qt.Key_Q), self, self.close)
top_layout = QHBoxLayout()
top_layout.addWidget(shoot)