aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/signals/bug_311.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/signals/bug_311.py')
-rw-r--r--sources/pyside6/tests/signals/bug_311.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sources/pyside6/tests/signals/bug_311.py b/sources/pyside6/tests/signals/bug_311.py
index 6772f89b7..449734c33 100644
--- a/sources/pyside6/tests/signals/bug_311.py
+++ b/sources/pyside6/tests/signals/bug_311.py
@@ -38,17 +38,17 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)
-from PySide6 import QtCore
+from PySide6.QtCore import QDate, QObject, Signal
from helper.usesqcoreapplication import UsesQCoreApplication
-class DerivedDate(QtCore.QDate):
+class DerivedDate(QDate):
def __init__(self,y,m,d):
super(DerivedDate,self).__init__(y,m,d)
-class Emitter(QtCore.QObject):
- dateSignal1 = QtCore.Signal(QtCore.QDate)
- dateSignal2 = QtCore.Signal(DerivedDate)
- tupleSignal = QtCore.Signal(tuple)
+class Emitter(QObject):
+ dateSignal1 = Signal(QDate)
+ dateSignal2 = Signal(DerivedDate)
+ tupleSignal = Signal(tuple)
class SignaltoSignalTest(UsesQCoreApplication):
def myCb(self, dt):