summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-10 05:31:00 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-10 05:31:00 (GMT)
commit5d01d0cde28f2ac1ff9b5d8ca731edcf38725051 (patch)
treeef56c4771081a69202443e7124c506c1b378fdb3
parent19c72e88b8951fb9e110a8bcdc187ac7c5dd87fd (diff)
downloadQt-5d01d0cde28f2ac1ff9b5d8ca731edcf38725051.zip
Qt-5d01d0cde28f2ac1ff9b5d8ca731edcf38725051.tar.gz
Qt-5d01d0cde28f2ac1ff9b5d8ca731edcf38725051.tar.bz2
Emit axisChanged() when the QGraphicsRotation3D axis changes.
Reviewed-by: Aaron Kennedy
-rw-r--r--src/gui/graphicsview/qgraphicstransform.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicstransform.cpp b/src/gui/graphicsview/qgraphicstransform.cpp
index ae88641..775a0d5 100644
--- a/src/gui/graphicsview/qgraphicstransform.cpp
+++ b/src/gui/graphicsview/qgraphicstransform.cpp
@@ -522,8 +522,11 @@ QVector3D QGraphicsRotation3D::axis()
void QGraphicsRotation3D::setAxis(const QVector3D &axis)
{
Q_D(QGraphicsRotation3D);
+ if (d->axis == axis)
+ return;
d->axis = axis;
update();
+ emit axisChanged();
}
const qreal deg2rad = qreal(0.017453292519943295769); // pi/180