MCPcopy Create free account
hub / github.com/KDAB/GammaRay / slotHandlerDestroyed

Method slotHandlerDestroyed

common/endpoint.cpp:313–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void Endpoint::slotHandlerDestroyed(QObject *obj)
314{
315 // copy, the virtual method below likely changes the maps.
316 const QList<ObjectInfo *> objs = m_handlerMap.values(obj);
317 m_handlerMap.remove(obj);
318 for (ObjectInfo *obj : objs) {
319 obj->receiver = nullptr;
320 obj->messageHandler = QMetaMethod();
321 // copy the name, in case unregisterMessageHandlerInternal() is called inside
322 handlerDestroyed(obj->address, QString(obj->name));
323 }
324}
325
326void Endpoint::dispatchMessage(const Message &msg)
327{

Callers

nothing calls this directly

Calls 3

handlerDestroyedFunction · 0.85
QStringClass · 0.50
removeMethod · 0.45

Tested by

no test coverage detected