diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-07-08 10:57:41 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-07-09 10:30:45 +0200 |
| commit | 277bb19bad0855839d16920ff6a6142d6e135f51 (patch) | |
| tree | 64fdc67bde5511e21426a5b3f0b7e6389933d2f6 /sources/pyside6/libpyside/qobjectconnect.cpp | |
| parent | e3b159b241b452ceb1013fd9aebe0d9a25a64ed9 (diff) | |
libpyside: Pass MetaObjectBuilder signature as QByteArray
Change the MetaObjectBuilder::addSlot()/addSignal() functions to use a
QByteArray since the underlying QMetaObjectBuilder takes QByteArray,
too.
Split SignalManager::registerMetaMethodGetIndex()
into overloads for const char * (for the signal code path)
and QByteArray (for the slot code path).
Task-number: PYSIDE-2810
Change-Id: Ie79ea071a8cc111d45248c7086cf6fda34a7548f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/qobjectconnect.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/qobjectconnect.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside6/libpyside/qobjectconnect.cpp b/sources/pyside6/libpyside/qobjectconnect.cpp index f3c420768..053ccc7ad 100644 --- a/sources/pyside6/libpyside/qobjectconnect.cpp +++ b/sources/pyside6/libpyside/qobjectconnect.cpp @@ -233,8 +233,9 @@ QMetaObject::Connection qobjectConnectCallback(QObject *source, const char *sign const char *slotSignature = receiver.callbackSig.constData(); slotIndex = receiver.usingGlobalReceiver ? signalManager.globalReceiverSlotIndex(receiver.receiver, slotSignature) - : PySide::SignalManager::registerMetaMethodGetIndex(receiver.receiver, slotSignature, - QMetaMethod::Slot); + : PySide::SignalManager::registerMetaMethodGetIndexBA(receiver.receiver, + receiver.callbackSig, + QMetaMethod::Slot); if (slotIndex == -1) { if (receiver.usingGlobalReceiver) |
