summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qrenderattachment.cpp
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens.ecortex@kdab.com>2014-11-21 08:38:50 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-11-27 15:03:46 +0100
commit01039e45417733e2d93f859f694eaba5ba7e4701 (patch)
treebd9099f57f9074b8bd73c3bcbcf934cd13bee3f8 /src/render/frontend/qrenderattachment.cpp
parenta0b300075f43432d3cbece6b2d25efa246923ba0 (diff)
Make cloning available to third party QNodes
Third party QNode subclasses won't have access to QNodePrivate, so move the clone() operation as a protected static method on QNode itself. This way third party nodes can implement deep copy in their copy() implementation as expected. Change-Id: I59d0414f4ea9c679f2b7e197ea90e36bd8a915a4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qrenderattachment.cpp')
-rw-r--r--src/render/frontend/qrenderattachment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/frontend/qrenderattachment.cpp b/src/render/frontend/qrenderattachment.cpp
index cb55fa380..1e3898e7b 100644
--- a/src/render/frontend/qrenderattachment.cpp
+++ b/src/render/frontend/qrenderattachment.cpp
@@ -62,7 +62,7 @@ void QRenderAttachment::copy(const QNode *ref)
QNode::copy(ref);
const QRenderAttachment *rA = static_cast<const QRenderAttachment*>(ref);
d_func()->m_type = rA->d_func()->m_type;
- setTexture(qobject_cast<QTexture *>(QNodePrivate::get(rA->d_func()->m_texture)->clone()));
+ setTexture(qobject_cast<QTexture *>(QNode::clone(rA->d_func()->m_texture)));
}
QRenderAttachment::QRenderAttachment(QNode *parent)