diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-28 13:38:50 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-06 14:50:34 +0200 |
commit | 0117bd14cb2a58fec09d5d08fd1835a041f929ce (patch) | |
tree | 6bb03b933916ad7253032d275bda20cfaae06dbd /sources/pyside6/tests/QtCore/qthread_test.py | |
parent | 58ac9b4ca4e67db1480c03f3fc84948d2dcb793f (diff) |
Tests: Port away from string based signal-slot connections
Change the occurrences that do not appear to test string-based
connections.
Change-Id: I4bc8916ea1326f6258f0ad643408cd2c42690e1e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtCore/qthread_test.py')
-rw-r--r-- | sources/pyside6/tests/QtCore/qthread_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtCore/qthread_test.py b/sources/pyside6/tests/QtCore/qthread_test.py index a08b0d777..13c92b6f7 100644 --- a/sources/pyside6/tests/QtCore/qthread_test.py +++ b/sources/pyside6/tests/QtCore/qthread_test.py @@ -90,7 +90,7 @@ class QThreadSimpleCase(UsesQCoreApplication): def testSignalFinished(self): # QThread.finished() (signal) obj = Dummy() - QObject.connect(obj, SIGNAL('finished()'), self.cb) + obj.finished.connect(self.cb) mutex.lock() obj.start() mutex.unlock() @@ -104,7 +104,7 @@ class QThreadSimpleCase(UsesQCoreApplication): def testSignalStarted(self): # QThread.started() (signal) obj = Dummy() - QObject.connect(obj, SIGNAL('started()'), self.cb) + obj.started.connect(self.cb) obj.start() self._thread = obj |