summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicstransform
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-04-01 16:06:23 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-04-01 16:06:23 (GMT)
commitf707672eb4c51ea82fbd98e1da16ece61a74c690 (patch)
treef276d6ae14986b29cf29da411691b57d3dd47a89 /tests/auto/qgraphicstransform
parent1c3fa677ee494f8982c99b468b4a4fcad8aa04c7 (diff)
parent14de8cecfa5b5428d597c9cca111ee0f3f89502f (diff)
downloadQt-f707672eb4c51ea82fbd98e1da16ece61a74c690.zip
Qt-f707672eb4c51ea82fbd98e1da16ece61a74c690.tar.gz
Qt-f707672eb4c51ea82fbd98e1da16ece61a74c690.tar.bz2
Merge branch 4.7 into qt-master-from-4.7
Diffstat (limited to 'tests/auto/qgraphicstransform')
-rw-r--r--tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp b/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp
index 9434a0b..903d7e7 100644
--- a/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp
+++ b/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp
@@ -225,6 +225,10 @@ void tst_QGraphicsTransform::rotation()
rotation.setAngle(90);
QCOMPARE(transform2D(rotation).map(QPointF(10, 10)), QPointF(10, 10));
QCOMPARE(transform2D(rotation).map(QPointF(20, 10)), QPointF(10, 20));
+
+ rotation.setOrigin(QVector3D(0, 0, 0));
+ rotation.setAngle(qQNaN());
+ QCOMPARE(transform2D(rotation).map(QPointF(20, 10)), QPointF(20, 10));
}
Q_DECLARE_METATYPE(Qt::Axis);