MCPcopy Create free account
hub / github.com/KDE/labplot / instanceOfPlugin

Method instanceOfPlugin

src/backend/core/plugin/PluginManager.cpp:231–237  ·  view source on GitHub ↗

* \brief Get the plugin root instance for a given file name. */

Source from the content-addressed store, hash-verified

229 * \brief Get the plugin root instance for a given file name.
230 */
231QObject* 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
240void PluginManager::printAll() {

Callers

nothing calls this directly

Calls 2

fileNameMethod · 0.45
instanceMethod · 0.45

Tested by

no test coverage detected