diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-12-11 10:06:03 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-12-11 10:43:01 (GMT) |
commit | 343de9228ae65c36c4a9a45297d45cdeb04a8e44 (patch) | |
tree | dadebf5d01e931eeb053c70e4ef92e12deb996bb /tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp | |
parent | 3a8a1f83d60ec16e4c61e2b0a327a5af02917a5a (diff) | |
download | Qt-343de9228ae65c36c4a9a45297d45cdeb04a8e44.zip Qt-343de9228ae65c36c4a9a45297d45cdeb04a8e44.tar.gz Qt-343de9228ae65c36c4a9a45297d45cdeb04a8e44.tar.bz2 |
Fixed qgraphicseffectsource autotest.
Prevent crashing when asking for a source pixmap in logical coordinates
and PadToEffectiveBoundingRect mode. Also, change the expected values
for the test that uses LogicalCoordinates and
PadToEffectiveBoundingRect mode to reflect that the boundingRectFor()
function applies padding in device coordinates (and in this case there
is a scale by 2 when drawing the effect).
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp')
-rw-r--r-- | tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp b/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp index 9991ab4..7a0d40a 100644 --- a/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp +++ b/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp @@ -352,7 +352,7 @@ void tst_QGraphicsEffectSource::pixmapPadding_data() QTest::newRow("log,effectrect") << int(Qt::LogicalCoordinates) << int(QGraphicsEffect::PadToEffectiveBoundingRect) - << QSize(30, 30) << QPoint(-10, -10) + << QSize(20, 20) << QPoint(-5, -5) << 0x00000000u; QTest::newRow("dev,nopad") << int(Qt::DeviceCoordinates) |