blob: 03d99bdbc8ab61aedaaa8e45defb229f487c0ff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
%{Cpp:LicenseTemplate}\
#include "%{HdrFileName}"
#include "%{PrivateHdrFileName}"
QT_BEGIN_NAMESPACE
%{JS: Cpp.openNamespaces('%{Class}')}
@if '%{Base}' === 'QNode' || '%{Base}' === 'QComponent' || '%{Base}' === 'QEntity'
%{CN}Private::%{CN}Private()
: Qt3DCore::%{Base}Private()
{
}
%{CN}::%{CN}(Qt3DCore::QNode *parent)
: Qt3DCore::%{Base}(*new %{CN}Private, parent)
{
}
%{CN}::%{CN}(%{CN}Private &dd, Qt3DCore::QNode *parent)
: Qt3DCore::%{Base}(dd, parent)
{
}
%{CN}::~%{CN}()
{
QNode::cleanup();
}
@else
// TODO: Implement QBackendNode template
@endif
@if '%{Base}' === 'QNode' || '%{Base}' === 'QComponent' || '%{Base}' === 'QEntity'
void %{CN}::copy(const QNode *ref)
{
%{Base}::copy(ref);
const %{CN} *object = static_cast<const %{CN} *>(ref);
// TODO: Copy the objects's members
}
@endif
%{JS: Cpp.closeNamespaces('%{Class}')}\
QT_END_NAMESPACE
|