summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/clipping_state.qps
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-04-17 14:06:06 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-04-17 14:06:06 (GMT)
commitf15b8a83e2e51955776a3f07cb85ebfc342dd8ef (patch)
treec5dc684986051654898db11ce73e03b9fec8db99 /tests/arthur/data/qps/clipping_state.qps
downloadQt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.zip
Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.gz
Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.bz2
Initial import of statemachine branch from the old kinetic repository
Diffstat (limited to 'tests/arthur/data/qps/clipping_state.qps')
-rw-r--r--tests/arthur/data/qps/clipping_state.qps57
1 files changed, 57 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 0000000..fd9a80a
--- /dev/null
+++ b/tests/arthur/data/qps/clipping_state.qps
@@ -0,0 +1,57 @@
+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