summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/clipping_state.qps
diff options
context:
space:
mode:
authorQt by Nokia <qt-info@nokia.com>2011-04-27 12:05:43 +0200
committeraxis <qt-info@nokia.com>2011-04-27 12:05:43 +0200
commit38be0d13830efd2d98281c645c3a60afe05ffece (patch)
tree6ea73f3ec77f7d153333779883e8120f82820abe /tests/arthur/data/qps/clipping_state.qps
Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12
Diffstat (limited to 'tests/arthur/data/qps/clipping_state.qps')
-rw-r--r--tests/arthur/data/qps/clipping_state.qps72
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/arthur/data/qps/clipping_state.qps b/tests/arthur/data/qps/clipping_state.qps
new file mode 100644
index 0000000000..3a661226a5
--- /dev/null
+++ b/tests/arthur/data/qps/clipping_state.qps
@@ -0,0 +1,72 @@
+path_addRect path1 10 10 50 50
+path_addRect path2 30 30 50 50
+
+
+# enable/disable a clip path
+setPen nopen
+setBrush red
+
+setClipPath path1
+setClipPath path2 UniteClip
+
+drawRect 0 0 100 100
+
+setClipping false
+
+setBrush #630000ff
+drawRect 0 0 100 100
+
+setClipping true
+
+setBrush #6300ff00
+drawRect 0 0 100 100
+
+
+# enable/disable noclip
+translate 150 0
+
+setClipPath path1 NoClip
+
+setClipping false
+
+setBrush #630000ff
+drawRect 0 0 100 100
+
+setClipping true
+
+setBrush #6300ff00
+drawRect 25 25 50 50
+
+
+# enable/disable full clipping
+translate 150 0
+
+path_addRect path3 0 0 10 10
+path_addRect path4 20 20 10 10
+setClipPath path3
+setClipPath path4 IntersectClip
+
+setClipping false
+
+setBrush #630000ff
+drawRect 0 0 100 100
+
+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