1 | // Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB). |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DQUICK3DEXTRASPLUGIN_H |
5 | #define QT3DQUICK3DEXTRASPLUGIN_H |
6 | |
7 | #include <QtQml/QQmlExtensionPlugin> |
8 | |
9 | static void initResources() |
10 | { |
11 | #ifdef QT_STATIC |
12 | Q_INIT_RESOURCE(extras); // from the Qt3DQuickExtras module |
13 | #endif |
14 | } |
15 | |
16 | QT_BEGIN_NAMESPACE |
17 | |
18 | class Qt3DQuick3DExtrasPlugin : public QQmlExtensionPlugin |
19 | { |
20 | Q_OBJECT |
21 | Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) |
22 | public: |
23 | Qt3DQuick3DExtrasPlugin(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) { initResources(); } |
24 | void registerTypes(const char *uri) override; |
25 | }; |
26 | |
27 | QT_END_NAMESPACE |
28 | |
29 | #endif // QT3DQUICK3DEXTRASPLUGIN_H |
30 |