From 219e7bafa278792f7bde110d24333fb60b555c12 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 7 May 2020 15:22:52 +0200 Subject: QtGui: fix deprecated QChar conversions Conversions from non-char-types to QChar are going to be deprecated. Use QChar::fromUcs2(), fromUcs4(), QLatin1Char(), or convert the constructor argument to char16_t. Change-Id: Ib45ebd5560aa3a2bc460037ab09773607485c6e2 Reviewed-by: Volker Hilsheimer --- src/gui/text/qfontengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/text/qfontengine.cpp') diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp index 9c71a073db..88499b32b8 100644 --- a/src/gui/text/qfontengine.cpp +++ b/src/gui/text/qfontengine.cpp @@ -350,7 +350,7 @@ void QFontEngine::getGlyphPositions(const QGlyphLayout &glyphs, const QTransform glyphs_out[current] = glyphs.glyphs[i]; ++current; if (glyphs.justifications[i].nKashidas) { - QChar ch(0x640); // Kashida character + QChar ch = u'\x640'; // Kashida character glyph_t kashidaGlyph = glyphIndex(ch.unicode()); QFixed kashidaWidth; -- cgit v1.2.3