Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgassetimporterfactory.cpp
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
9
10#include <QtCore/qdebug.h>
11#include <QtCore/private/qfactoryloader_p.h>
12#include <QtCore/QCoreApplication>
13#include <QtCore/QDir>
14
16
17Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QSSGAssetImporterFactoryInterface_iid, QLatin1String("/assetimporters"), Qt::CaseInsensitive))
18
19QStringList QSSGAssetImporterFactory::keys()
20{
21 return loader->keyMap().values();
22}
23
24QSSGAssetImporter *QSSGAssetImporterFactory::create(const QString &name, const QStringList &args)
25{
26 return qLoadPlugin<QSSGAssetImporter, QSSGAssetImporterPlugin>(loader(), name, args);
27}
28
29QT_END_NAMESPACE
Combined button and popup list for selecting options.
#define QSSGAssetImporterFactoryInterface_iid