diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-01-21 18:07:38 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2010-01-21 18:41:03 -0300 |
commit | 7cc317c53cccfc9126d1d1ae3c4a98b179fd8c43 (patch) | |
tree | 24d428d0da11d1ccef12a500a184dbf3360ee9c5 /examples/tutorial | |
parent | 52a693f4f79de443ad3564a4ca4be6f69e0c30bf (diff) |
Fixing examples
- Import and signal connection
- parent() override now calls QObject.parent
- Fixed multiple inheritance
- Static method usage
- implicit conversions
- use QUiLoader instead of uic
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'examples/tutorial')
-rwxr-xr-x | examples/tutorial/t14.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py index 95e0621..121f840 100755 --- a/examples/tutorial/t14.py +++ b/examples/tutorial/t14.py @@ -160,7 +160,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) |