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 QT3DQUICKANIMATION_GLOBAL_P_H
5#define QT3DQUICKANIMATION_GLOBAL_P_H
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 <Qt3DQuickAnimation/qt3dquickanimation_global.h>
19#include <QtQml/qqml.h>
20#include <private/qglobal_p.h>
21
22#define Q_3DQUICKANIMATIONSHARED_PRIVATE_EXPORT Q_3DQUICKANIMATIONSHARED_EXPORT
23
24QT_BEGIN_NAMESPACE
25
26void Q_3DQUICKANIMATIONSHARED_PRIVATE_EXPORT qml_register_types_Qt3D_Animation();
27
28namespace Qt3DAnimation {
29namespace Quick {
30
31Q_3DQUICKANIMATIONSHARED_PRIVATE_EXPORT void Quick3DAnimation_initialize();
32Q_3DQUICKANIMATIONSHARED_PRIVATE_EXPORT void Quick3DAnimation_registerType(const char *className, const char *quickName, int major, int minor);
33
34template<class T, class E> void registerExtendedType(const char *className, const char *quickName,
35 const char *uri, int major, int minor, const char *name)
36{
37 qmlRegisterExtendedType<T, E>(uri, major, minor, name);
38 Quick3DAnimation_registerType(className, quickName, major, minor);
39}
40
41template<class T> void registerType(const char *className, const char *quickName,
42 const char *uri, int major, int minor, const char *name)
43{
44 qmlRegisterType<T>(uri, major, minor, name);
45 Quick3DAnimation_registerType(className, quickName, major, minor);
46}
47
48} // Quick
49} // Qt3DAnimation
50
51QT_END_NAMESPACE
52
53#endif // QT3DQUICKANIMATION_GLOBAL_P_H
54

source code of qt3d/src/quick3d/quick3danimation/qt3dquickanimation_global_p.h