summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-03-25 09:32:49 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-03-25 09:44:18 (GMT)
commit8f601bf85748ca62344c5dbaef2f3dd941a16466 (patch)
treedb8007c7c49280f91cffa419c595795d26d7832a /tests/auto/qscriptengine
parent76267b3608836e1cc46171921caf725cfbd2ecf7 (diff)
downloadQt-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/qscriptengine')
0 files changed, 0 insertions, 0 deletions