| 1 | // Copyright (C) 2017 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 QT3DQUICKEXTRAS_GLOBAL_P_H |
| 5 | #define |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists for the convenience |
| 12 | // of other Qt classes. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <Qt3DQuickExtras/qt3dquickextras_global.h> |
| 19 | #include <QtQml/qqml.h> |
| 20 | #include <private/qglobal_p.h> |
| 21 | |
| 22 | #define Q_3DQUICKEXTRASSHARED_EXPORT |
| 23 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | namespace Qt3DExtras { |
| 27 | namespace Quick { |
| 28 | |
| 29 | Q_3DQUICKEXTRASSHARED_PRIVATE_EXPORT void (); |
| 30 | Q_3DQUICKEXTRASSHARED_PRIVATE_EXPORT void (const char *className, const char *quickName, int major, int minor); |
| 31 | |
| 32 | template<class T, class E> void (const char *className, const char *quickName, |
| 33 | const char *uri, int major, int minor, const char *name) |
| 34 | { |
| 35 | qmlRegisterExtendedType<T, E>(uri, major, minor, name); |
| 36 | Quick3DExtras_registerType(className, quickName, major, minor); |
| 37 | } |
| 38 | |
| 39 | } // Quick |
| 40 | } // Qt3DExtras |
| 41 | |
| 42 | QT_END_NAMESPACE |
| 43 | |
| 44 | #endif // QT3DQUICKEXTRAS_GLOBAL_P_H |
| 45 | |