aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorial/t14.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorial/t14.py')
-rw-r--r--examples/tutorial/t14.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py
index 4bb971f1d..2d5e1a171 100644
--- a/examples/tutorial/t14.py
+++ b/examples/tutorial/t14.py
@@ -310,7 +310,7 @@ class CannonField(QtWidgets.QWidget):
return QtCore.QRect(145, self.height() - 100, 15, 99)
def barrelHit(self, pos):
- matrix = QtGui.QMatrix()
+ matrix = QtGui.QTransform()
matrix.translate(0, self.height())
matrix.rotate(-self.currentAngle)
matrix, invertible = matrix.inverted()
@@ -334,7 +334,7 @@ class GameBoard(QtWidgets.QWidget):
quit.setFont(QtGui.QFont("Times", 18, QtGui.QFont.Bold))
self.connect(quit, QtCore.SIGNAL("clicked()"),
- QtWidgets.qApp, QtCore.SLOT("quit()"))
+ qApp, QtCore.SLOT("quit()"))
angle = LCDRange("ANGLE")
angle.setRange(5, 70)