* \brief Get the plugin root instance for a given file name. */
| 229 | * \brief Get the plugin root instance for a given file name. |
| 230 | */ |
| 231 | QObject* PluginManager::instanceOfPlugin(const QString& fileName) { |
| 232 | QObject* result = nullptr; |
| 233 | for (auto* loader : m_loadedPlugins) |
| 234 | if (loader->fileName() == fileName) |
| 235 | result = loader->instance(); |
| 236 | return result; |
| 237 | } |
| 238 | |
| 239 | #ifdef QT_DEBUG |
| 240 | void PluginManager::printAll() { |