summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-09-09 15:38:57 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-09-09 15:44:35 (GMT)
commit07880542ecc479807c23c5646d263135240822ff (patch)
tree3e82442f58390ebc8ac71ab738749ca269037b43 /src/3rdparty/webkit
parent80ca4cd1d9d9a1b725fb7a6016f1035c3d3ffc92 (diff)
downloadQt-07880542ecc479807c23c5646d263135240822ff.zip
Qt-07880542ecc479807c23c5646d263135240822ff.tar.gz
Qt-07880542ecc479807c23c5646d263135240822ff.tar.bz2
Account for right bearing in QFontMetrics::boundingRect(string)
QFontMetrics::boundingRect() that takes a string needs to account for the right bearing of the last glyph, as it is documented to be the rectangle that contains the pixels of the text. I've added a test for this, and fixed tst_QFontMetrics::elidedText() to use boundingRect() to find the actual width of the text drawn (width() will return the advance of the text, which is larger than the actual width of the pixels.) I've also fixed a small typo in the "len" -> "ilen". Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/3rdparty/webkit')
0 files changed, 0 insertions, 0 deletions