diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-12 10:54:18 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-12 11:00:35 (GMT) |
commit | 6a408b6c6d00a76c74a4d612d85996d7ad3f03ba (patch) | |
tree | 69897fe71e4260a0a0c16791e83a325cd67bc10f /tests/auto/qtransform | |
parent | 426be37acb7b7fb0bbd58ff8ec18dac8ae650375 (diff) | |
download | Qt-6a408b6c6d00a76c74a4d612d85996d7ad3f03ba.zip Qt-6a408b6c6d00a76c74a4d612d85996d7ad3f03ba.tar.gz Qt-6a408b6c6d00a76c74a4d612d85996d7ad3f03ba.tar.bz2 |
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 74c405e..3b13a41 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); } |