! \fn void Aggregate::remove(QObject *component) Removes the \a component from the aggregate. \sa Aggregate::add() */
| 264 | \sa Aggregate::add() |
| 265 | */ |
| 266 | void Aggregate::remove(QObject *component) |
| 267 | { |
| 268 | if (!component) |
| 269 | return; |
| 270 | { |
| 271 | QWriteLocker locker(&lock()); |
| 272 | aggregateMap().remove(component); |
| 273 | m_components.removeAll(component); |
| 274 | disconnect(component, SIGNAL(destroyed(QObject*)), this, SLOT(deleteSelf(QObject*))); |
| 275 | } |
| 276 | emit changed(); |
| 277 | } |
no test coverage detected