summaryrefslogtreecommitdiffstats
path: root/src/render/lights
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-04-30 18:17:35 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-05-03 10:20:47 +0000
commit03d62618692f93dfc1aa53e7e2245177432c2604 (patch)
tree010e65930c0db7ddd2080686cc63017e42320be2 /src/render/lights
parent23b668235c9b902a2577b3ac6e369b77974382b4 (diff)
Remove QBackendNode::updateFromPeer()
Implemented a few missing initializeFromPeer() implementations along with the corresponding frontend node creation change creation functions. Adapted unit tests. Change-Id: I571e53a7b68a5544bd0e308df0baf7e52533306e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/lights')
-rw-r--r--src/render/lights/light.cpp8
-rw-r--r--src/render/lights/light_p.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/src/render/lights/light.cpp b/src/render/lights/light.cpp
index cd43c0f9c..7491b8b77 100644
--- a/src/render/lights/light.cpp
+++ b/src/render/lights/light.cpp
@@ -53,14 +53,6 @@ using namespace Qt3DCore;
namespace Qt3DRender {
namespace Render {
-void Light::updateFromPeer(QNode *node)
-{
- QAbstractLight *light = static_cast<QAbstractLight *>(node);
- QShaderData *shaderData = light->findChild<QShaderData *>();
- if (shaderData != nullptr)
- m_shaderDataId = shaderData->id();
-}
-
QNodeId Light::shaderData() const
{
return m_shaderDataId;
diff --git a/src/render/lights/light_p.h b/src/render/lights/light_p.h
index 552b8fee6..31901bf11 100644
--- a/src/render/lights/light_p.h
+++ b/src/render/lights/light_p.h
@@ -64,8 +64,6 @@ class NodeManagers;
class Q_AUTOTEST_EXPORT Light : public BackendNode
{
public:
- void updateFromPeer(Qt3DCore::QNode *node) Q_DECL_OVERRIDE;
-
Qt3DCore::QNodeId shaderData() const;
private: