diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-12 12:54:18 +0200 |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-12 13:00:35 +0200 |
commit | 6a408b6c6d00a76c74a4d612d85996d7ad3f03ba (patch) | |
tree | 69897fe71e4260a0a0c16791e83a325cd67bc10f /tests/auto/qtransform | |
parent | 426be37acb7b7fb0bbd58ff8ec18dac8ae650375 (diff) |
Fixed bug where QTransform::type() failed to compute the correct type.
Since QTransform::type() now uses a switch based on m_dirty, we can't
treat m_dirty as a bit mask anymore.
Reviewed-by: Ariya
Diffstat (limited to 'tests/auto/qtransform')
-rw-r--r-- | tests/auto/qtransform/tst_qtransform.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qtransform/tst_qtransform.cpp b/tests/auto/qtransform/tst_qtransform.cpp index 74c405e1b8..3b13a417f0 100644 --- a/tests/auto/qtransform/tst_qtransform.cpp +++ b/tests/auto/qtransform/tst_qtransform.cpp @@ -603,6 +603,13 @@ void tst_QTransform::types() 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.0f); QCOMPARE(m3.type(), QTransform::TxProject); + + QTransform m4; + m4.scale(5, 5); + m4.translate(4, 2); + m4.rotate(45); + + QCOMPARE(m4.type(), QTransform::TxRotate); } |