diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-23 09:01:15 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-23 10:41:30 (GMT) |
commit | a8a0c956f747cd09ca04cfe8b33d09a8476c6453 (patch) | |
tree | 5eaefe921a5f45f290d5dcb701eb71f142f68f25 /tests/auto/qrect | |
parent | aacf96f414651c516b11518d9a921d9853d09e69 (diff) | |
download | Qt-a8a0c956f747cd09ca04cfe8b33d09a8476c6453.zip Qt-a8a0c956f747cd09ca04cfe8b33d09a8476c6453.tar.gz Qt-a8a0c956f747cd09ca04cfe8b33d09a8476c6453.tar.bz2 |
Regression against 4.4 in QRectF::operator|.
In 4.4 QRectF handled flat rectangles in the same fashion as QRect does,
but that changed with Lars' and Jo's optmizations done in the falcon
branch. The difference is that the optimized version only checks whether
the width or height is 0, whereas in 4.4 both had to be 0 (isNull()) before
we bailed out.
This regression also introduced a regression in
QGraphicsItem::childrenBoundingRect().
Auto-test included.
Task-number: 254995
Reviewed-by: Lars
Diffstat (limited to 'tests/auto/qrect')
-rw-r--r-- | tests/auto/qrect/tst_qrect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qrect/tst_qrect.cpp b/tests/auto/qrect/tst_qrect.cpp index cdb5560..5a91636 100644 --- a/tests/auto/qrect/tst_qrect.cpp +++ b/tests/auto/qrect/tst_qrect.cpp @@ -4125,6 +4125,7 @@ void tst_QRect::unitedRect_data() QTest::newRow("test 13") << QRect() << QRect(10, 10, 10, 10) << QRect(10, 10, 10, 10); QTest::newRow("test 14") << QRect(10, 10, 10, 10) << QRect() << QRect(10, 10, 10, 10); QTest::newRow("test 15") << QRect() << QRect() << QRect(); + QTest::newRow("test 16") << QRect(0, 0, 100, 0) << QRect(0, 0, 0, 100) << QRect(0, 0, 100, 100); } void tst_QRect::unitedRect() @@ -4160,6 +4161,7 @@ void tst_QRect::unitedRectF_data() QTest::newRow("test 13") << QRectF() << QRectF(10, 10, 10, 10) << QRectF(10, 10, 10, 10); QTest::newRow("test 14") << QRectF(10, 10, 10, 10) << QRectF() << QRectF(10, 10, 10, 10); QTest::newRow("test 15") << QRectF() << QRectF() << QRectF(); + QTest::newRow("test 16") << QRectF(0, 0, 100, 0) << QRectF(0, 0, 0, 100) << QRectF(0, 0, 100, 100); } void tst_QRect::unitedRectF() |