diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-22 08:45:48 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-22 08:56:46 (GMT) |
commit | 4c515cebc653e44fe6374058b205610592128ea4 (patch) | |
tree | d68edcf2494646f407355fd8b420050537d926ba /tests | |
parent | 1a2a6c152dbb467f31bd809098a19f4c90c6d48f (diff) | |
download | Qt-4c515cebc653e44fe6374058b205610592128ea4.zip Qt-4c515cebc653e44fe6374058b205610592128ea4.tar.gz Qt-4c515cebc653e44fe6374058b205610592128ea4.tar.bz2 |
Fixed wrong painting when doing IntersectClip after setClipping(false).
The documentation is a bit ambiguous on what the expected behavior here
is, but the behavior was consistent across paint engines before 4.5.
QPaintEngineEx introduced inconsistencies in the raster and OpenGL paint
engines, so this patch reverts the behavior back to what it was in 4.4.
Task-number: 256549
Reviewed-by: Trond
Diffstat (limited to 'tests')
-rw-r--r-- | tests/arthur/data/qps/clipping_state.qps | 15 | ||||
-rw-r--r-- | tests/arthur/data/qps/clipping_state_qps.png | bin | 5089 -> 5133 bytes |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/arthur/data/qps/clipping_state.qps b/tests/arthur/data/qps/clipping_state.qps index fd9a80a..3a66122 100644 --- a/tests/arthur/data/qps/clipping_state.qps +++ b/tests/arthur/data/qps/clipping_state.qps @@ -55,3 +55,18 @@ setClipping true setBrush #6300ff00 drawRect 25 25 50 50 + +# disable clipping followed by setClipRect +translate 150 0 + +setClipRect 0 0 50 50 ReplaceClip + +setClipping false + +setBrush #630000ff +drawRect 0 0 100 100 + +setClipRect 25 25 75 75 IntersectClip + +setBrush #6300ff00 +drawRect 25 25 50 50 diff --git a/tests/arthur/data/qps/clipping_state_qps.png b/tests/arthur/data/qps/clipping_state_qps.png Binary files differindex 9b3dee2..28bee46 100644 --- a/tests/arthur/data/qps/clipping_state_qps.png +++ b/tests/arthur/data/qps/clipping_state_qps.png |