qt5base-lts/tests/arthur/data/qps/beziers.qps
Qt by Nokia 38be0d1383 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
2011-04-27 12:05:43 +02:00

145 lines
2.4 KiB
Plaintext

setRenderHint LineAntialiasing
translate 20 20
path_moveTo fullSize 0 0
path_cubicTo fullSize 200 100 -100 100 100 0
path_moveTo fullSize 0 200
path_cubicTo fullSize 0 100 100 100 100 200
path_moveTo fullSize 0 250
path_cubicTo fullSize 50 200 50 200 100 250
drawPath fullSize
translate 110 0
scale 10 10
path_moveTo medSize 0 0
path_cubicTo medSize 20 10 -10 10 10 0
path_moveTo medSize 0 20
path_cubicTo medSize 0 10 10 10 10 20
path_moveTo medSize 0 25
path_cubicTo medSize 5 20 5 20 10 25
drawPath medSize
resetMatrix
translate 240 20
scale 100 100
path_moveTo smallSize 0 0
path_cubicTo smallSize 2 1 -1 1 1 0
path_moveTo smallSize 0 2
path_cubicTo smallSize 0 1 1 1 1 2
path_moveTo smallSize 0 2.5
path_cubicTo smallSize 0.5 2 0.5 2 1 2.5
drawPath smallSize
resetMatrix
translate 20 300
drawPath medSize
resetMatrix
translate 250 -100
path_moveTo maxSize 0 500
path_cubicTo maxSize 1000 0 -500 0 500 500
drawPath maxSize
setRenderHint Antialiasing off
resetMatrix
path_moveTo path1 0 0
path_cubicTo path1 10 10 0 10 10 0
path_moveTo path2 0 0
path_cubicTo path2 15 15 -5 15 10 0
path_moveTo path3 0 0
path_cubicTo path3 20 20 -10 20 10 0
path_moveTo path4 0 0
path_cubicTo path4 0 5 10 10 0 15
path_moveTo path5 0 10
path_cubicTo path5 10 10 -10 20 0 0
path_moveTo path6 0 0
path_cubicTo path6 10 5 -10 10 0 15
setPen black 2
setBrush nobrush
translate 10 500
scale 3 3
begin_block paths
save
drawPath path1
translate 20 0
drawPath path2
translate 20 0
drawPath path3
translate 20 0
drawPath path4
translate 20 0
drawPath path5
translate 20 0
drawPath path6
restore
end_block
setPen nopen
setBrush black
translate 0 20
repeat_block paths
setRenderHint Antialiasing
setPen black 2
setBrush nobrush
translate 120 -20
repeat_block paths
setPen nopen
setBrush black
translate 0 20
repeat_block paths
resetMatrix
path_moveTo miterPath 20 0
path_cubicTo miterPath 20 20 0 0 1 0
path_lineTo miterPath -1 -0.2
setBrush nobrush
translate 50 660
scale 5 5
setPen black 4 solidline flatcap miterjoin
drawPath miterPath
setPen red 0
drawPath miterPath
path_moveTo miterPath2 21 0.2
path_lineTo miterPath2 19 0
path_cubicTo miterPath2 20 0 0 20 0 0
translate 30 0
setPen black 4 solidline flatcap miterjoin
drawPath miterPath2
setPen red 0
drawPath miterPath2
path_moveTo wonkyPath 0 0
path_cubicTo wonkyPath 5 15 20 0 17 0
translate 30 0
setPen black 4 solidline flatcap miterjoin
drawPath wonkyPath
setPen red 0
drawPath wonkyPath