| 65 | } |
| 66 | |
| 67 | void PropertyController::setObject(QObject *object) |
| 68 | { |
| 69 | if (m_object) |
| 70 | disconnect(m_object.data(), &QObject::destroyed, this, &PropertyController::objectDestroyed); |
| 71 | if (object) |
| 72 | connect(object, &QObject::destroyed, this, &PropertyController::objectDestroyed); |
| 73 | |
| 74 | m_object = object; |
| 75 | |
| 76 | QStringList availableExtensions; |
| 77 | |
| 78 | for (PropertyControllerExtension *extension : std::as_const(m_extensions)) { |
| 79 | if (extension->setQObject(object)) |
| 80 | availableExtensions << extension->name(); |
| 81 | } |
| 82 | |
| 83 | setAvailableExtensions(availableExtensions); |
| 84 | } |
| 85 | |
| 86 | void PropertyController::setObject(void *object, const QString &className) |
| 87 | { |
nothing calls this directly
no test coverage detected