MCPcopy Create free account
hub / github.com/BrigJS/brig / findSignalId

Method findSignalId

src/DynamicQObject.cpp:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 int DynamicQObject::findSignalId(const char *signal)
230 {
231 //const QMetaObject *meta = obj->metaObject();
232 const QMetaObject *meta = _metaObject;
233
234 // Finding signal id
235 for (int i = meta->methodOffset(); i < meta->methodCount(); ++i) {
236 QMetaMethod method = meta->method(i);
237 const char *methodName = method.name().data();
238//printf("=== method name: %s\n", methodName);
239 if (strcmp(signal, methodName) == 0)
240 return i;
241 }
242
243 return -1;
244 }
245
246 bool DynamicQObject::setObject(QObject *_obj)
247 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected