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

Method objectAdded

core/toolmanager.cpp:166–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void ToolManager::objectAdded(QObject *obj)
167{
168 // note: hot path, don't do expensive operations here
169
170 Q_ASSERT(QThread::currentThread() == thread());
171 Q_ASSERT(Probe::instance()->isValidObject(obj));
172
173 // m_knownMetaObjects allows us to skip the expensive recursive search for matching tools
174 if (!m_knownMetaObjects.contains(obj->metaObject())) {
175 objectAdded(obj->metaObject());
176 m_knownMetaObjects.insert(obj->metaObject());
177 }
178}
179
180void ToolManager::objectAdded(const QMetaObject *mo)
181{

Callers

nothing calls this directly

Calls 10

superClassMethod · 0.80
metaObjectMethod · 0.45
insertMethod · 0.45
constBeginMethod · 0.45
supportedTypesMethod · 0.45
constEndMethod · 0.45
classNameMethod · 0.45
removeMethod · 0.45
initMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected