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

Method setObject

src/DynamicQObject.cpp:246–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 bool DynamicQObject::setObject(QObject *_obj)
247 {
248#if 0
249 // It's already set up
250 if (obj != NULL)
251 return false;
252
253 this->obj = _obj;
254
255 // Apply all callbacks if callbacks were already set up
256 for (int i = 0; i < callbacks.count(); ++i) {
257 int id = findSignalId(callbacks[i]->signal);
258 if (id == -1)
259 continue;
260
261 QMetaObject::connect(obj, id, this, id + QObject::metaObject()->methodCount());
262 }
263
264#endif
265 return true;
266 }
267
268 int DynamicQObject::addCallback(const char *signal, Handle<Value> cb)
269 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected