qt5base-lts/tests/auto/other/lancelot/scripts/background.qps

137 lines
2.4 KiB
Plaintext
Raw Normal View History

# Version: 1
# CheckVsReference: 5%
translate 10 30
setBackground 7f7fff
setBackgroundMode Transparent
setPen ff7f7f
path_moveTo path 0 0
path_lineTo path 25 0
path_cubicTo path 50 0 25 25 25 50
path_lineTo path 0 50
bitmap_load bitmap.png bitmap
begin_block drawing
save
drawRect 0 0 50 50
translate 60 0
drawEllipse 0 0 50 50
translate 60 0
drawPolygon [0 0 50 0 25 50 25 25]
translate 60 0
drawPath path
translate 60 0
drawPie 0 0 50 50 1440 2000
translate 60 0
drawChord 0 0 50 50 1440 2000
translate 60 0
drawLine 0 0 50 0
drawLine 0 0 50 50
drawLine 0 0 0 50
translate 60 0
drawPolyline [0 0 50 0 25 50 25 25]
translate 60 0
drawArc 0 0 50 50 1440 2000
translate 60 0
drawText 0 10 "Jambi-Bambi"
translate 80 0
drawPixmap bitmap 0 0
restore
save
setRenderHint Antialiasing
translate 5 55
drawRect 0 0 50 50
translate 60 0
drawEllipse 0 0 50 50
translate 60 0
drawPolygon [0 0 50 0 25 50 25 25]
translate 60 0
drawPath path
translate 60 0
drawPie 0 0 50 50 1440 2000
translate 60 0
drawChord 0 0 50 50 1440 2000
translate 60 0
drawLine 0 0 50 0
drawLine 0 0 50 50
drawLine 0 0 0 50
translate 60 0
drawPolyline [0 0 50 0 25 50 25 25]
translate 60 0
drawArc 0 0 50 50 1440 2000
translate 60 0
drawText 0 10 "Jambi-Bambi"
translate 80 0
drawPixmap bitmap 0 0
restore
end_block
translate 0 160
setBackgroundMode Transparent
setPen ff7f7f 0 dotline flatcap beveljoin
repeat_block drawing
translate 0 160
setBackgroundMode Opaque
setPen ff7f7f 0 dotline flatcap beveljoin
repeat_block drawing
translate 0 160
setBackgroundMode Transparent
setPen ff7f7f 4 dashline flatcap beveljoin
repeat_block drawing
translate 0 160
setBackgroundMode OpaqueMode
setPen ff7f7f 4 dashline flatcap beveljoin
repeat_block drawing
resetMatrix
translate 5 5
setBrush nobrush
setPen black
setBackgroundMode transparent
drawText 10 15 "TransparentMode with solid 0-width pen"
drawRect 0 0 685 135
translate 0 160
drawText 10 15 "TransparentMode with dotted 0-width pen"
drawRect 0 0 685 135
translate 0 160
drawText 10 15 "OpaqueMode with dotted 0-width pen"
drawRect 0 0 685 135
translate 0 160
drawText 10 15 "TransparentMode with dotted 4-width pen"
drawRect 0 0 685 135
translate 0 160
drawText 10 15 "OpaqueMode with solid 4-width pen"
drawRect 0 0 685 135