qt5base-lts/tests/arthur/data/qps/object_bounding_mode.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

36 lines
710 B
Plaintext

setRenderHint Antialiasing
setPen black 5
translate 10 10
gradient_clearStops
gradient_appendStop 0 red
gradient_appendStop 0.25 orange
gradient_appendStop 0.5 yellow
gradient_appendStop 0.8 green
gradient_appendStop 1 cyan
gradient_setSpread PadSpread
gradient_setCoordinateMode ObjectBoundingMode
gradient_setLinear 0.2 0.2 0.7 0.7
gradient_setLinearPen 0.0 0.0 0.0 1.0
begin_block objects
drawRect 0 0 100 100
drawEllipse 100 0 100 100
drawRoundRect 200 0 100 100
drawPolygon [300 0 390 0 350 99]
drawPie 400 0 100 100 720 4320
drawLine 510 10 590 90
drawRect 610 0 40 100
drawRect 670 30 100 40
end_block
translate 0 120
repeat_block objects
translate 10 120
rotate 10
repeat_block objects