diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-02-18 13:34:12 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-02-18 13:41:57 -0300 |
commit | 67ca75471f19824aa38524c4f330154fe489686a (patch) | |
tree | 8e80f1d77e30b2a3f5c7404a037160cc2f8178e3 /examples/tutorial | |
parent | 7cc317c53cccfc9126d1d1ae3c4a98b179fd8c43 (diff) |
Replaced deprecated functions.
Diffstat (limited to 'examples/tutorial')
-rwxr-xr-x | examples/tutorial/t12.py | 2 | ||||
-rwxr-xr-x | examples/tutorial/t13.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorial/t12.py b/examples/tutorial/t12.py index 5663263..27ead9e 100755 --- a/examples/tutorial/t12.py +++ b/examples/tutorial/t12.py @@ -139,7 +139,7 @@ class CannonField(QtGui.QWidget): self.autoShootTimer.stop() self.emit(QtCore.SIGNAL("missed()")) else: - region = region.unite(QtGui.QRegion(shotR)) + region = region.united(QtGui.QRegion(shotR)) self.update(region) diff --git a/examples/tutorial/t13.py b/examples/tutorial/t13.py index b0a1e99..33b7f45 100755 --- a/examples/tutorial/t13.py +++ b/examples/tutorial/t13.py @@ -159,7 +159,7 @@ class CannonField(QtGui.QWidget): self.emit(QtCore.SIGNAL("missed()")) self.emit(QtCore.SIGNAL("canShoot(bool)"), True) else: - region = region.unite(QtGui.QRegion(shotR)) + region = region.united(QtGui.QRegion(shotR)) self.update(region) |