diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-07-08 11:22:53 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-07-09 10:31:22 +0200 |
| commit | 0574e20b3afb0cf2291ca41233d4e6dcfcd88939 (patch) | |
| tree | d2ba4202756737d15bdc03289215862fb56e309e /sources/pyside6/libpyside/qobjectconnect.cpp | |
| parent | 277bb19bad0855839d16920ff6a6142d6e135f51 (diff) | |
libpyside: Refactor signature handling in GlobalReceiverV2
Move the signatures hash from DynamicSlotDataV2 into GlobalReceiverV2
to avoid unnecessary indirections and to enable further refactorings
of DynamicSlotDataV2.
Use QByteArray for the signature parameters, avoiding the conversion.
Task-number: PYSIDE-2810
Change-Id: I17a637e28e9dac4ea159b26a375e8c1535e00814
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/qobjectconnect.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/qobjectconnect.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sources/pyside6/libpyside/qobjectconnect.cpp b/sources/pyside6/libpyside/qobjectconnect.cpp index 053ccc7ad..ec19de491 100644 --- a/sources/pyside6/libpyside/qobjectconnect.cpp +++ b/sources/pyside6/libpyside/qobjectconnect.cpp @@ -230,9 +230,8 @@ QMetaObject::Connection qobjectConnectCallback(QObject *source, const char *sign return {}; } - const char *slotSignature = receiver.callbackSig.constData(); slotIndex = receiver.usingGlobalReceiver - ? signalManager.globalReceiverSlotIndex(receiver.receiver, slotSignature) + ? signalManager.globalReceiverSlotIndex(receiver.receiver, receiver.callbackSig) : PySide::SignalManager::registerMetaMethodGetIndexBA(receiver.receiver, receiver.callbackSig, QMetaMethod::Slot); |
