mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-12-02 08:33:00 +08:00
82 lines
1.5 KiB
Plaintext
82 lines
1.5 KiB
Plaintext
# Version: 1
|
|
# CheckVsReference: 5%
|
|
|
|
# 1: Check brush origin vs (non)cosmetic brush patterns
|
|
|
|
setBrush blue CrossPattern
|
|
begin_block blockName
|
|
save
|
|
setBrushOrigin 0 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 1 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 2 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 3 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 4 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 5 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 6 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 7 0
|
|
fillRect 0 0 32 32
|
|
translate 0 32
|
|
setBrushOrigin 8 0
|
|
fillRect 0 0 32 32
|
|
restore
|
|
end_block blockName
|
|
|
|
save
|
|
setBrush red CrossPattern
|
|
scale 2 1
|
|
repeat_block blockName
|
|
restore
|
|
|
|
save
|
|
translate 0 300
|
|
setRenderHint NonCosmeticBrushPatterns true
|
|
setBrush blue CrossPattern
|
|
repeat_block blockName
|
|
setBrush red CrossPattern
|
|
scale 2 1
|
|
repeat_block blockName
|
|
restore
|
|
|
|
# 2: Check brush update after only xform or hint change
|
|
translate 100 0
|
|
|
|
save
|
|
setPen NoPen
|
|
setBrush blue DiagCrossPattern
|
|
setRenderHint NonCosmeticBrushPatterns true
|
|
drawRect 10 10 200 100
|
|
scale 10 10
|
|
drawRect 22 1 20 10
|
|
drawRect 22 12 20 10
|
|
setRenderHint NonCosmeticBrushPatterns false
|
|
drawRect 1 12 20 10
|
|
restore
|
|
|
|
setBrush green DiagCrossPattern
|
|
setPen brush 100 SolidLine FlatCap
|
|
pen_setCosmetic true
|
|
setBrush NoBrush
|
|
translate 0 250
|
|
setRenderHint NonCosmeticBrushPatterns true
|
|
drawLine 10 60 210 60
|
|
scale 10 10
|
|
drawLine 22 6 42 6
|
|
drawLine 22 17 42 17
|
|
setRenderHint NonCosmeticBrushPatterns false
|
|
drawLine 1 17 21 17
|
|
|