Increase chances of finding the ellipsis glyph in elided text
The glyph for the ellipsis could be absent in the main font, so we should try to find it in a fallback font; otherwise fall back to "...". Change-Id: Ic53060ed42f3c800aba055d2be2a1c7c3cfeec64 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
parent
393f096ec3
commit
229c519785
@ -2747,8 +2747,7 @@ QString QTextEngine::elidedText(Qt::TextElideMode mode, const QFixed &width, int
|
||||
QFixed ellipsisWidth;
|
||||
QString ellipsisText;
|
||||
{
|
||||
QFontEngine *fe = fnt.d->engineForScript(QChar::Script_Common);
|
||||
QFontEngine *engine = fe->type() == QFontEngine::Multi ? static_cast<QFontEngineMulti *>(fe)->engine(0) : fe;
|
||||
QFontEngine *engine = fnt.d->engineForScript(QChar::Script_Common);
|
||||
|
||||
QChar ellipsisChar(0x2026);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user