diff options
| author | Christian Tismer <tismer@stackless.com> | 2022-01-07 14:27:44 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2022-01-12 11:47:17 +0100 |
| commit | 258bb0c2b49ead03725b6fa2ed700bd3e468a008 (patch) | |
| tree | eec72e035d503b6892d96a76ba88c2a44072c0b7 /sources/pyside6/doc/tutorials/basictutorial | |
| parent | bd0e0bdec184ae9f8e82a2c5e5101faf9be1db83 (diff) | |
signal: Fix equality test for inherited signals, update
Signal initialization was improved by walking the MRO
to find all signals. But this had the side effect that
signals could be overwritten.
This implementation resolves signals only once per name,
so that only the most recent signal places an instance
into the instance dict.
Note: this does _not_ solve the equality problem of
super().signal == super().signal # fails
because the super call triggers a new signalInstance in the
parent. This has to be addressed in a bigger rewrite if desired.
[ChangeLog][PySide6] Signal initialization now respects
the order of subclasses in the mro().
Change-Id: I7481576798ca272ebebf8e9a5ba875cfc94e8361
Fixes: PYSIDE-1751
Pick-to: 6.2
Task-number: PYSIDE-1431
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial')
0 files changed, 0 insertions, 0 deletions
