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:
parent
45c623c42a
commit
cd2f29891f
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user