qt5base-lts/tests/auto/lancelot/scripts/linedashes2.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

154 lines
2.3 KiB
Plaintext

# Version: 1
# CheckVsReference: 5% (0 0 800 800)
translate -30 10
setPen 0xffff0000 0 dashline squarecap
pen_setDashPattern [10 5]
save
translate 100 100
begin_block lines
drawLine 100 100 200 100
drawLine 100 100 200 200
drawLine 100 100 100 200
end_block
setPen 0xffff0000 2 dashline squarecap
translate 150 0
repeat_block lines
restore
save
save
begin_block horizontal
drawLine 0 0 50 0
drawLine 3 10 53 10
drawLine 6 20 56 20
drawLine 9 30 59 30
translate 0 50
drawLine 0 0 50 5
drawLine 3 10 53 15
drawLine 6 20 56 25
drawLine 9 30 59 35
translate 0 50
drawLine 0 0 50 -5
drawLine 3 10 53 5
drawLine 6 20 56 15
drawLine 9 30 59 25
end_block
restore
save
translate 80 0
repeat_block horizontal
restore
save
translate 800 0
repeat_block horizontal
restore
translate 180 -40
save
begin_block vertical
drawLine 0 0 0 50
drawLine 10 3 10 53
drawLine 20 6 20 56
drawLine 30 9 30 59
translate 50 0
drawLine 0 0 5 50
drawLine 10 3 15 53
drawLine 20 6 25 56
drawLine 30 9 35 59
translate 50 0
drawLine 0 0 -5 50
drawLine 10 3 5 53
drawLine 20 6 15 56
drawLine 30 9 25 59
end_block
restore
save
translate 0 80
repeat_block vertical
restore
translate 0 800
repeat_block vertical
restore
translate 0 200
setPen 0xffff0000 2 dashline squarecap
save
repeat_block horizontal
restore
save
translate 80 0
repeat_block horizontal
restore
save
translate 780 0
repeat_block horizontal
restore
translate 360 -240
save
repeat_block vertical
restore
save
translate 0 80
repeat_block vertical
restore
translate 0 780
repeat_block vertical
resetMatrix
translate 40 400
setPen 0xffff0000 5 dashdotline flatcap
pen_setDashPattern [1 1 4 1 1 4]
pen_setDashOffset -4
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset -2
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 0
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 2
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 4
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 6
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 8
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 10
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 12
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 14
drawLine 0 0 300 0
translate 0 8
pen_setDashOffset 16
drawLine 0 0 300 0
resetMatrix
setPen black 3 dashdotline
pen_setCosmetic true
translate 0 -150
drawLine 500 160 500 410