summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qrenderpluginfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/frontend/qrenderpluginfactory.cpp')
-rw-r--r--src/render/frontend/qrenderpluginfactory.cpp35
1 files changed, 2 insertions, 33 deletions
diff --git a/src/render/frontend/qrenderpluginfactory.cpp b/src/render/frontend/qrenderpluginfactory.cpp
index f842e651d..25c97cd23 100644
--- a/src/render/frontend/qrenderpluginfactory.cpp
+++ b/src/render/frontend/qrenderpluginfactory.cpp
@@ -52,45 +52,14 @@ namespace Qt3DRender {
namespace Render {
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QRenderPluginFactoryInterface_iid, QLatin1String("/renderplugins"), Qt::CaseInsensitive))
-#if QT_CONFIG(library)
-Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, directLoader, (QRenderPluginFactoryInterface_iid, QLatin1String(""), Qt::CaseInsensitive))
-#endif
-QStringList QRenderPluginFactory::keys(const QString &pluginPath)
+QStringList QRenderPluginFactory::keys()
{
-#if QT_CONFIG(library)
- QStringList list;
- if (!pluginPath.isEmpty()) {
- QCoreApplication::addLibraryPath(pluginPath);
- list = directLoader()->keyMap().values();
- if (!list.isEmpty()) {
- const QString postFix = QLatin1String(" (from ")
- + QDir::toNativeSeparators(pluginPath)
- + QLatin1Char(')');
- const QStringList::iterator end = list.end();
- for (QStringList::iterator it = list.begin(); it != end; ++it)
- (*it).append(postFix);
- }
- }
- list.append(loader()->keyMap().values());
- return list;
-#else
return loader()->keyMap().values();
-#endif
}
-QRenderPlugin *QRenderPluginFactory::create(const QString &name, const QStringList &args,
- const QString &pluginPath)
+QRenderPlugin *QRenderPluginFactory::create(const QString &name, const QStringList &args)
{
-#if QT_CONFIG(library)
- if (!pluginPath.isEmpty()) {
- QCoreApplication::addLibraryPath(pluginPath);
- if (QRenderPlugin *ret
- = qLoadPlugin<QRenderPlugin, QRenderPluginFactoryIf>(directLoader(), name, args)) {
- return ret;
- }
- }
-#endif
return qLoadPlugin<QRenderPlugin, QRenderPluginFactoryIf>(loader(), name, args);
}