diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-11-24 16:59:59 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-11-25 10:39:56 +0000 |
commit | ae482776f5253ddc7220dae63b570ee76c22afe4 (patch) | |
tree | 37b16bfbf745cb48b4c3e111e6abfb169eed8fb5 /src/core/transforms/qtransform.cpp | |
parent | 101aac9947b45e83e61935899eb1ede6064571cf (diff) |
Unit tests for QTransform
Change-Id: Iefe3f3afb8281a2eb994bfc8b63ca81500f66934
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/transforms/qtransform.cpp')
-rw-r--r-- | src/core/transforms/qtransform.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/transforms/qtransform.cpp b/src/core/transforms/qtransform.cpp index 254869af4..81e5a83a3 100644 --- a/src/core/transforms/qtransform.cpp +++ b/src/core/transforms/qtransform.cpp @@ -125,6 +125,7 @@ void QTransform::setScale3D(const QVector3D &scale) Q_D(QTransform); if (scale != d->m_scale) { d->m_scale = scale; + d->m_matrixDirty = true; emit scale3DChanged(); } } @@ -157,6 +158,7 @@ void QTransform::setRotation(const QQuaternion &rotation) Q_D(QTransform); if (rotation != d->m_rotation) { d->m_rotation = rotation; + d->m_matrixDirty = true; emit rotationChanged(); } } @@ -172,6 +174,7 @@ void QTransform::setTranslation(const QVector3D &translation) Q_D(QTransform); if (translation != d->m_translation) { d->m_translation = translation; + d->m_matrixDirty = true; emit translationChanged(); } } |