summaryrefslogtreecommitdiffstats
path: root/src/core/transforms/qtransform.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-03-23 15:48:54 +0100
committerPaul Lemire <paul.lemire@kdab.com>2015-04-27 10:09:20 +0000
commit2e34ef2d053cfa0c152442a758dda6296902c7c8 (patch)
treec415b937176f41fc05cc0262b41df1e38eb0a91f /src/core/transforms/qtransform.cpp
parent636a27e482f7085b25086250408f2d9dc4edbc5f (diff)
Examples: fixed to work with QAbstractTransform as QObject
Also fixed QTransform to copy proper transformation matrix to work when loaded in the backend and sent to the frontend. Change-Id: Iec417fd49092b5e3d7971784327ff4bbfb75549b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/transforms/qtransform.cpp')
-rw-r--r--src/core/transforms/qtransform.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/transforms/qtransform.cpp b/src/core/transforms/qtransform.cpp
index 5ec3fe6c0..3e5a84b55 100644
--- a/src/core/transforms/qtransform.cpp
+++ b/src/core/transforms/qtransform.cpp
@@ -114,7 +114,9 @@ void QTransform::copy(const QNode *ref)
{
QComponent::copy(ref);
const QTransform *transform = static_cast<const QTransform *>(ref);
- d_func()->m_matrix = transform->d_func()->m_matrix;
+ // We need to copy the matrix with all the pending
+ // transformations applied
+ d_func()->m_matrix = transform->matrix();
}
QList<QAbstractTransform *> QTransform::transforms() const