Fix compiler warning from deprecated function

Make the string into a list and call setFontFamilies.

Pick-to: 6.0
Change-Id: I1b70db784fd6e495b48917141d07bacd1e883882
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
Volker Hilsheimer 2020-11-25 15:08:18 +01:00
parent 45c623c42a
commit cd2f29891f

View File

@ -693,7 +693,7 @@ void tst_QTextFormat::dataStreamCompatibility()
QTextCharFormat format;
format.setFontStretch(42);
format.setFontLetterSpacingType(QFont::AbsoluteSpacing);
format.setFontFamily(QLatin1String("Arial"));
format.setFontFamilies({QLatin1String("Arial")});
// Sanity check
{