equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the test suite of the Qt Toolkit. |
7 ** This file is part of the test suite of the Qt Toolkit. |
8 ** |
8 ** |
608 m4.scale(5, 5); |
608 m4.scale(5, 5); |
609 m4.translate(4, 2); |
609 m4.translate(4, 2); |
610 m4.rotate(45); |
610 m4.rotate(45); |
611 |
611 |
612 QCOMPARE(m4.type(), QTransform::TxRotate); |
612 QCOMPARE(m4.type(), QTransform::TxRotate); |
|
613 |
|
614 QTransform m5; |
|
615 m5.scale(5, 5); |
|
616 m5 = m5.adjoint() / m5.determinant(); |
|
617 QCOMPARE(m5.type(), QTransform::TxScale); |
613 } |
618 } |
614 |
619 |
615 |
620 |
616 void tst_QTransform::scalarOps() |
621 void tst_QTransform::scalarOps() |
617 { |
622 { |