diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2014-10-15 13:38:32 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-10-16 10:18:14 +0200 |
commit | cd1d21fdad54315c4a8ade860ce6b31aa5a6f4b9 (patch) | |
tree | c1c042dfdb6c7fd8644c2e45a1cdad18b0703e57 /src/render/frontend/qcuboidmesh.cpp | |
parent | 0f1d0ff5b3adb16afcda091e4ff4657f53581f79 (diff) |
Have copy() only on QNode
It was previously both on QNode and QNodePrivate. The one on
QNodePrivate didn't give us much as it didn't eliminate the virtual of
QNode.
Change-Id: Ia1ea9dd831674109c84bd7005abe7fde3b1223fa
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qcuboidmesh.cpp')
-rw-r--r-- | src/render/frontend/qcuboidmesh.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/render/frontend/qcuboidmesh.cpp b/src/render/frontend/qcuboidmesh.cpp index eeb79528a..40b474e66 100644 --- a/src/render/frontend/qcuboidmesh.cpp +++ b/src/render/frontend/qcuboidmesh.cpp @@ -62,16 +62,16 @@ QCuboidMeshPrivate::QCuboidMeshPrivate(QCuboidMesh *qq) { } -void QCuboidMeshPrivate::copy(const QNodePrivate *ref) +void QCuboidMesh::copy(const QNode *ref) { - QAbstractShapeMeshPrivate::copy(ref); - const QCuboidMeshPrivate *mesh = static_cast<const QCuboidMeshPrivate *>(ref); - m_xExtent = mesh->m_xExtent; - m_yExtent = mesh->m_yExtent; - m_zExtent = mesh->m_zExtent; - m_yzFaceResolution = mesh->m_yzFaceResolution; - m_xzFaceResolution = mesh->m_xzFaceResolution; - m_xyFaceResolution = mesh->m_xyFaceResolution; + QAbstractShapeMesh::copy(ref); + const QCuboidMesh *mesh = static_cast<const QCuboidMesh*>(ref); + d_func()->m_xExtent = mesh->d_func()->m_xExtent; + d_func()->m_yExtent = mesh->d_func()->m_yExtent; + d_func()->m_zExtent = mesh->d_func()->m_zExtent; + d_func()->m_yzFaceResolution = mesh->d_func()->m_yzFaceResolution; + d_func()->m_xzFaceResolution = mesh->d_func()->m_xzFaceResolution; + d_func()->m_xyFaceResolution = mesh->d_func()->m_xyFaceResolution; } QCuboidMesh::QCuboidMesh(QNode *parent) |