| 164 | } |
| 165 | |
| 166 | void 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 | |
| 180 | void ToolManager::objectAdded(const QMetaObject *mo) |
| 181 | { |
nothing calls this directly
no test coverage detected