e8f93e38de
In preparation for addition of new baseline tests, establish a new test category, "baseline". This is similar to the category "benchmarks" in that it contains tests that use the QTest framework, but conceptually are not unit tests, in contrast to those under auto/. Move the existing QPainter baseline test, tst_lancelot, into this new category, and rename it accordingly. Baseline tests use the QBaselineTest extension to QTest. Move that extension too into the tests/baseline directory, allowing the clean out of the baselineserver directory. Pick-to: 6.2 Change-Id: I1b527f5867c953b1d22be73798fcf7d1494712ea Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
72 lines
1.2 KiB
Plaintext
72 lines
1.2 KiB
Plaintext
# Version: 1
|
|
|
|
|
|
setRenderHint Antialiasing
|
|
|
|
setPen #00ff00
|
|
|
|
image_load image.png the_image
|
|
|
|
translate 10 10
|
|
# standard draw
|
|
drawImage the_image 0 0
|
|
|
|
# Rotation w/o smooth xform
|
|
save
|
|
translate 350 0
|
|
save
|
|
setRenderHint SmoothPixmapTransform on
|
|
mapQuadToQuad 0 0 0 300 300 300 300 0 0 50 0 200 300 300 300 0
|
|
drawImage the_image 0 0
|
|
restore
|
|
restore
|
|
|
|
translate 0 320
|
|
|
|
save
|
|
setRenderHint SmoothPixmapTransform on
|
|
mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 100 300 200 300 300 0
|
|
drawImage the_image 0 0
|
|
restore
|
|
|
|
save
|
|
translate 350 0
|
|
save
|
|
setRenderHint SmoothPixmapTransform on
|
|
mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 0 300 300 250 300 50
|
|
drawImage the_image 0 0
|
|
restore
|
|
restore
|
|
|
|
setRenderHint SmoothPixmapTransform on
|
|
setBrush red
|
|
setPen black
|
|
resetMatrix
|
|
translate 100 720
|
|
rotate_y 85
|
|
scale 7 0.01
|
|
drawRect -150 -150 300 300
|
|
|
|
resetMatrix
|
|
setBrush gam030.png
|
|
setPen black 30
|
|
translate 700 700
|
|
rotate_y -85
|
|
scale 7 0.01
|
|
drawRect -150 -150 300 300
|
|
|
|
resetMatrix
|
|
setPen black
|
|
translate 125 20
|
|
drawText 0 0 "No transform"
|
|
translate 350 0
|
|
drawText 0 0 "Left Tilted"
|
|
resetMatrix
|
|
translate 125 350
|
|
drawText 0 0 "Bottom Tilted"
|
|
translate 350 0
|
|
drawText 0 0 "Right Tilted"
|
|
translate 120 0
|
|
resetMatrix
|
|
translate 300 760
|
|
drawText 0 0 "Perspective Clipping" |