diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-12-13 15:19:57 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:47:57 -0300 |
commit | ee8d6262dcceb4d594a01623c947e9186e985221 (patch) | |
tree | 187e4a39c799bd59c2986b873cb1f7e08a9fe0f5 /tests/QtGui/qdynamic_signal.py | |
parent | 02e4fa2b963b35d3a5cd737e3887938afb6da1e7 (diff) |
Fixed new style signal connection tests for the proper semantics.
One example to clarify: for the "destroyed(QObject* = 0)" signal,
"obj.destroyed.connect(...)" connects to "destroyed()", and
"obj.destroyed[QObject].connect(...)" connects to "destroyed(QObject*)".
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtGui/qdynamic_signal.py')
-rw-r--r-- | tests/QtGui/qdynamic_signal.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/QtGui/qdynamic_signal.py b/tests/QtGui/qdynamic_signal.py index d44ee79cc..0eecb7d11 100644 --- a/tests/QtGui/qdynamic_signal.py +++ b/tests/QtGui/qdynamic_signal.py @@ -1,6 +1,7 @@ import unittest +from PySide.QtCore import QObject from PySide.QtGui import QInputDialog from helper import UsesQApplication @@ -17,7 +18,7 @@ class DynamicSignalTest(UsesQApplication): self.assert_(len(lst)) obj = lst[0] self._called = False - obj.destroyed.connect(self.cb) + obj.destroyed[QObject].connect(self.cb) obj = None del dlg self.assert_(self._called) |