summaryrefslogtreecommitdiffstats
path: root/tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp')
-rw-r--r--tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp b/tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp
index 03d99bdbc..4200859a9 100644
--- a/tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp
+++ b/tools/utils/qtcreator/templates/wizards/classes/qt3d/file.cpp
@@ -22,19 +22,19 @@ QT_BEGIN_NAMESPACE
%{CN}::~%{CN}()
{
- QNode::cleanup();
}
@else
// TODO: Implement QBackendNode template
@endif
@if '%{Base}' === 'QNode' || '%{Base}' === 'QComponent' || '%{Base}' === 'QEntity'
-void %{CN}::copy(const QNode *ref)
+Qt3DCore::QNodeCreatedChangeBasePtr %{CN}::createNodeCreationChange() const
{
- %{Base}::copy(ref);
- const %{CN} *object = static_cast<const %{CN} *>(ref);
-
- // TODO: Copy the objects's members
+ auto creationChange = Qt3DCore::QNodeCreatedChangePtr<%{CN}Data>::create(this);
+ auto &data = creationChange->data;
+ Q_D(const %{CN});
+ // TODO: Send data members in creation change
+ return creationChange;
}
@endif
%{JS: Cpp.closeNamespaces('%{Class}')}\