diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-03-25 09:32:49 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-03-25 09:44:18 (GMT) |
commit | 8f601bf85748ca62344c5dbaef2f3dd941a16466 (patch) | |
tree | db8007c7c49280f91cffa419c595795d26d7832a /tests/auto/qwebpage | |
parent | 76267b3608836e1cc46171921caf725cfbd2ecf7 (diff) | |
download | Qt-8f601bf85748ca62344c5dbaef2f3dd941a16466.zip Qt-8f601bf85748ca62344c5dbaef2f3dd941a16466.tar.gz Qt-8f601bf85748ca62344c5dbaef2f3dd941a16466.tar.bz2 |
Fix QLabel::sizeHint()
The QTextControl case of QLabel calculated the bounding rect of the
label by taking the size of the control (floating point) and using
toSize() to convert this to an integer QSize. While this would work
when the font engine always returned integer values, it is not the
correct way to calculate a bounding rect, since the bounding rect needs
to contain all the pixels of the text, including the ones that are only
partially covered, thus its size should never be rounded down.
Reviewed-by: Olivier
Diffstat (limited to 'tests/auto/qwebpage')
0 files changed, 0 insertions, 0 deletions