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 QUICKEXTRASERNODEFACTORY_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 <private/qabstractnodefactory_p.h> |
19 | #include <QtCore/qhash.h> |
20 | #include <QtQml/private/qqmlmetatype_p.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QQmlType; |
25 | |
26 | namespace Qt3DExtras { |
27 | |
28 | class : public Qt3DCore::QAbstractNodeFactory |
29 | { |
30 | public: |
31 | Qt3DCore::QNode *(const char *type) override; |
32 | |
33 | void (const char *className, const char *quickName, int major, int minor); |
34 | |
35 | static QuickExtrasNodeFactory *(); |
36 | |
37 | private: |
38 | struct { |
39 | () : t(nullptr), resolved(false) { } |
40 | (const char *quickName, int major, int minor) |
41 | : quickName(quickName), version(major, minor), t(nullptr), resolved(false) { } |
42 | QByteArray ; |
43 | QPair<int, int> ; |
44 | QQmlType ; |
45 | bool ; |
46 | }; |
47 | QHash<QByteArray, Type> ; |
48 | }; |
49 | |
50 | } // namespace Qt3DExtras |
51 | |
52 | QT_END_NAMESPACE |
53 | |
54 | #endif // QUICKEXTRASERNODEFACTORY_H |
55 | |