summaryrefslogtreecommitdiffstats
path: root/src/core/transforms/qtransform.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@theqtcompany.com>2015-12-08 11:50:37 +0200
committerTomi Korpipää <tomi.korpipaa@theqtcompany.com>2015-12-09 05:18:19 +0000
commit0e15154c9f0d982096a551efc53fd363d2b2f68d (patch)
tree4917ca73c44a92297db7cc3dbd72d2716481ccc7 /src/core/transforms/qtransform.cpp
parent036ea9fcfdd343c805e1a900528e7a2367d6c373 (diff)
Added parameters to signals and made setters Q_SLOTS
Change-Id: Icec2f9f207221e35ffdeeb594bb9b4dc6ef890f1 Task-number: QTBUG-49797 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/transforms/qtransform.cpp')
-rw-r--r--src/core/transforms/qtransform.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/transforms/qtransform.cpp b/src/core/transforms/qtransform.cpp
index 81e5a83a3..ea640b802 100644
--- a/src/core/transforms/qtransform.cpp
+++ b/src/core/transforms/qtransform.cpp
@@ -100,12 +100,12 @@ void QTransform::setMatrix(const QMatrix4x4 &m)
d->m_scale = s;
d->m_rotation = r;
d->m_translation = t;
- emit scale3DChanged();
- emit rotationChanged();
- emit translationChanged();
+ emit scale3DChanged(s);
+ emit rotationChanged(r);
+ emit translationChanged(t);
const bool wasBlocked = blockNotifications(true);
- emit matrixChanged();
+ emit matrixChanged(m);
blockNotifications(wasBlocked);
}
}
@@ -126,7 +126,7 @@ void QTransform::setScale3D(const QVector3D &scale)
if (scale != d->m_scale) {
d->m_scale = scale;
d->m_matrixDirty = true;
- emit scale3DChanged();
+ emit scale3DChanged(scale);
}
}
@@ -142,7 +142,7 @@ void QTransform::setScale(float scale)
if (scale != d->m_scale.x()) {
setScale3D(QVector3D(scale, scale, scale));
const bool wasBlocked = blockNotifications(true);
- emit scaleChanged();
+ emit scaleChanged(scale);
blockNotifications(wasBlocked);
}
}
@@ -159,7 +159,7 @@ void QTransform::setRotation(const QQuaternion &rotation)
if (rotation != d->m_rotation) {
d->m_rotation = rotation;
d->m_matrixDirty = true;
- emit rotationChanged();
+ emit rotationChanged(rotation);
}
}
@@ -175,7 +175,7 @@ void QTransform::setTranslation(const QVector3D &translation)
if (translation != d->m_translation) {
d->m_translation = translation;
d->m_matrixDirty = true;
- emit translationChanged();
+ emit translationChanged(translation);
}
}