summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qglxintegration.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-10-02 09:09:26 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-03 17:17:29 +0200
commit84100c9085ddc30368582d02a4229d44622f85e2 (patch)
tree933f2dab8cfa26ce8cf2c4b3c67ce7912c1a5724 /src/plugins/platforms/xcb/qglxintegration.cpp
parent3d620088b461b9570fc67508ab6f1b71db81e94b (diff)
Fix issue with mispositioned family name i QFontComboBox
Mac OS X 10.7 comes with the family of Stix fonts, some of which exposed an ugly layout bug in the QFontComboBox because the ascent/descent ratio is very large due to a very high ascent, so centering the text vertically might cause most of the text to be clipped away. The solution is to detect when the ascent is larger than the height of the destination rectangle (hence a large part of the characters will be clipped) and use the actual bounding rect for centralizing instead. Since this only happens for a very few of the fonts, the overhead of getting the bounding rect should be tolerable. This is a port of 4679c6901fc7c388fdf6c022d3499708222ef1f1 from Qt 4.8. Task-number: QTBUG-26691 Change-Id: Ia2014775e5baf0568df3290f2dc4ad64fb5a74bd Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qglxintegration.cpp')
0 files changed, 0 insertions, 0 deletions