summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicstransform
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-19 23:06:18 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-19 23:06:18 (GMT)
commit6858ce448718db1cc7c76535cac82672ad1d7664 (patch)
treeaaf5f9dbf0131cca2f0fc6a50c8fb32a666d777f /tests/auto/qgraphicstransform
parentfeabd6584880c775a516d157c9cd24f0e707060d (diff)
downloadQt-6858ce448718db1cc7c76535cac82672ad1d7664.zip
Qt-6858ce448718db1cc7c76535cac82672ad1d7664.tar.gz
Qt-6858ce448718db1cc7c76535cac82672ad1d7664.tar.bz2
Remove QGraphicsTransform::project()
QMatrix4x4::toTransform() now does what project() used to do. Reviewed-by: trustme
Diffstat (limited to 'tests/auto/qgraphicstransform')
-rw-r--r--tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp b/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp
index 029c182..d3d511a 100644
--- a/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp
+++ b/tests/auto/qgraphicstransform/tst_qgraphicstransform.cpp
@@ -88,7 +88,7 @@ static QTransform transform2D(const QGraphicsTransform& t)
{
QMatrix4x4 m;
t.applyTo(&m);
- return QGraphicsTransform::project(m);
+ return m.toTransform();
}
void tst_QGraphicsTransform::scale()
@@ -148,7 +148,7 @@ void tst_QGraphicsTransform::scale()
// Because the origin has a non-zero z, mapping (4, 5) in 2D
// will introduce a projective component into the result.
- QTransform t3 = QGraphicsTransform::project(t2);
+ QTransform t3 = t2.toTransform();
QCOMPARE(t3.map(QPointF(4, 5)), QPointF(31 / t3.m33(), 8 / t3.m33()));
}