qt5base-lts/tests/auto/gui
Eskil Abrahamsen Blomfeldt e6880e7cd1 Fix text shifting vertically when elided
When eliding text we would check for the existence of the ellipsis
character and fall back to using the dot if it was not available.
However, when font merging was in use, we would also use ellipsis
from a fallback font if available. This could cause the metrics
of the text to increase if the fallback font had larger metrics,
and the result was that text could shift when elided.

It is better to prefer the dot from the current font than to use
the ellipsis from a fallback, so we only use the ellipsis if
it is in the main font.

[ChangeLog][QtGui][Text] Fixed a bug where eliding text could
change the height of its bounding rectangle for certain fonts.

Fixes: QTBUG-72553
Change-Id: Ib27fc65302465ddce661801bcc5ae32e55f1aeb9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-12-21 10:27:12 +00:00
..
image qt_imageFromWinHBITMAP(): Fix memory corruption when converting from bitmaps with low depths 2018-12-12 16:08:10 +00:00
itemmodels Fix QSIM::itemData returning role 255 2018-09-06 11:51:28 +00:00
kernel tst_qguieventdispatcher: Sync blacklist with tst_qeventdispatcher 2018-11-14 18:36:05 +00:00
math3d Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting Avoid crash in blitting or fast draw when QPointF is too big 2018-12-11 18:32:53 +00:00
qopengl Implement support for 16bpc image formats 2018-08-11 14:12:48 +00:00
qopenglconfig Fix tst_QOpenGlConfig for platforms with builtin test data 2017-06-19 07:05:59 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
text Fix text shifting vertically when elided 2018-12-21 10:27:12 +00:00
util Texture file support: add mipmap reading to ktx handler 2018-09-12 08:41:38 +00:00
gui.pro winrt: Skip/blacklist failing opengl tests 2018-05-28 08:36:55 +00:00