diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-08 10:12:40 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-12 14:25:19 +0100 |
| commit | 5b5cb391ccc318128946c64154a3284ae434bf8a (patch) | |
| tree | d38160374de34be9ca074756c7b9c8c13496fe6b /sources/pyside6/libpyside/pyside.cpp | |
| parent | 15ccf2484e605a9188fc0b00a5b0ee59197f2734 (diff) | |
Fix QObject::sender() for non-C++ slots
For non-C++ slots routed via GlobalReceiverV2, sender()
of the receiving QObject returns 0. To fix this, store
the sender obtained in GlobalReceiverV2::qt_metacall()
temporarily in a special dynamic property of the receiver
and inject code checking it into QObject::sender(). This
fixes at least the synchronous calls.
Fixes: PYSIDE-2144
Fixes: PYSIDE-1295
Change-Id: Ia111162eb1404914ecfb7f19fadb8a1b63ae8b4a
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/libpyside/pyside.cpp')
0 files changed, 0 insertions, 0 deletions
