b11317a643
Remove all trailing whitespace from the following list of files: *.cpp *.h *.conf *.qdoc *.pro *.pri *.mm *.rc *.pl *.qps *.xpm *.txt *README excluding 3rdparty, test-data and auto generated code. Note A): the only non 3rdparty c++-files that still have trailing whitespace after this change are: * src/corelib/codecs/cp949codetbl_p.h * src/corelib/codecs/qjpunicode.cpp * src/corelib/codecs/qbig5codec.cpp * src/corelib/xml/qxmlstream_p.h * src/tools/qdoc/qmlparser/qqmljsgrammar.cpp * src/tools/uic/ui4.cpp * tests/auto/other/qtokenautomaton/tokenizers/* * tests/benchmarks/corelib/tools/qstring/data.cpp * util/lexgen/tokenizer.cpp Note B): in about 30 files some overlapping 'leading tab' and 'TAB character in non-leading whitespace' issues have been fixed to make the sanity bot happy. Plus some general ws-fixes here and there as asked for during review. Change-Id: Ia713113c34d82442d6ce4d93d8b1cf545075d11d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
142 lines
3.1 KiB
Plaintext
142 lines
3.1 KiB
Plaintext
# Version: 1
|
|
|
|
drawText -5 5 "Text that is drawn outside the bounds..."
|
|
|
|
translate 20 20
|
|
begin_block text_drawing
|
|
save
|
|
setFont "sansserif" 10 normal
|
|
drawText 0 20 "sansserif 10pt, normal"
|
|
|
|
setFont "sansserif" 12 normal
|
|
drawText 0 40 "sansserif 12pt, normal"
|
|
|
|
setFont "sansserif" 10 bold
|
|
drawText 0 60 "sansserif 12pt, bold"
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
drawText 0 80 "sansserif 10pt, bold italic"
|
|
|
|
|
|
translate 0 100
|
|
setPen #7fff0000
|
|
|
|
setFont "sansserif" 10 normal
|
|
drawText 0 20 "alpha sansserif 10pt, normal"
|
|
|
|
setFont "sansserif" 12 normal
|
|
drawText 0 40 "alpha sansserif 12pt, normal"
|
|
|
|
setFont "sansserif" 10 bold
|
|
drawText 0 60 "alpha sansserif 12pt, bold"
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
drawText 0 80 "alpha sansserif 10pt, bold italic"
|
|
|
|
|
|
translate 0 100
|
|
setPen black
|
|
save
|
|
scale 0.9 0.9
|
|
|
|
setFont "sansserif" 10 normal
|
|
drawText 0 20 "scaled sansserif 10pt, normal"
|
|
|
|
setFont "sansserif" 12 normal
|
|
drawText 0 40 "scaled sansserif 12pt, normal"
|
|
|
|
setFont "sansserif" 10 bold
|
|
drawText 0 60 "scaled sansserif 12pt, bold"
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
drawText 0 80 "scaled sansserif 10pt, bold italic"
|
|
restore
|
|
|
|
translate 200 200
|
|
setPen black
|
|
save
|
|
scale -1 -1
|
|
|
|
setFont "sansserif" 10 normal
|
|
drawStaticText 0 20 "flipped sansserif 10pt, normal"
|
|
|
|
setFont "sansserif" 12 normal
|
|
drawStaticText 0 40 "flipped sansserif 12pt, normal"
|
|
|
|
setFont "sansserif" 10 bold
|
|
drawStaticText 0 60 "flipped sansserif 12pt, bold"
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
drawStaticText 0 80 "flipped sansserif 10pt, bold italic"
|
|
restore
|
|
|
|
translate -200 20
|
|
setPen black
|
|
save
|
|
translate 200 90
|
|
rotate 185
|
|
|
|
setFont "sansserif" 10 normal
|
|
drawText 0 20 "scaled sansserif 10pt, normal"
|
|
|
|
setFont "sansserif" 12 normal
|
|
drawText 0 40 "scaled sansserif 12pt, normal"
|
|
|
|
setFont "sansserif" 10 bold
|
|
drawText 0 60 "scaled sansserif 12pt, bold"
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
drawText 0 80 "scaled sansserif 10pt, bold italic"
|
|
restore
|
|
|
|
translate 0 100
|
|
gradient_appendStop 0 red
|
|
gradient_appendStop 0.5 #00ff00
|
|
gradient_appendStop 1 blue
|
|
gradient_setLinear 0 0 200 0
|
|
setPen brush
|
|
|
|
setFont "sansserif" 10 normal
|
|
drawText 0 0 "gradient sansserif 10pt, normal"
|
|
|
|
setFont "sansserif" 12 normal
|
|
drawText 0 20 "gradient sansserif 12pt, normal"
|
|
|
|
setFont "sansserif" 10 bold
|
|
drawText 0 40 "gradient sansserif 12pt, bold"
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
drawText 0 60 "gradient sansserif 10pt, bold italic"
|
|
restore
|
|
end_block
|
|
|
|
translate 250 0
|
|
drawText 25 640 "clipped to rectangle"
|
|
save
|
|
setPen #3f000000
|
|
setBrush nobrush
|
|
drawRect 20 0 100 620
|
|
setClipRect 20 0 100 620
|
|
setPen black
|
|
repeat_block text_drawing
|
|
restore
|
|
|
|
translate 150 0
|
|
drawText 25 640 "clipped to path"
|
|
save
|
|
path_moveTo clip 20 0
|
|
path_cubicTo clip 0 200 40 400 20 400
|
|
path_lineTo clip 30 620
|
|
path_lineTo clip 30 0
|
|
path_lineTo clip 40 0
|
|
path_lineTo clip 40 620
|
|
path_lineTo clip 120 620
|
|
path_lineTo clip 120 0
|
|
path_lineTo clip 20 0
|
|
setPen #3f000000
|
|
setBrush nobrush
|
|
drawPath clip
|
|
setClipPath clip
|
|
setPen black
|
|
repeat_block text_drawing
|
|
restore |