Skip to content

Commit

Permalink
Fix compiler warning from deprecated function
Browse files Browse the repository at this point in the history
Make the string into a list and call setFontFamilies.

Pick-to: 6.0
Change-Id: I1b70db784fd6e495b48917141d07bacd1e883882
Reviewed-by: Andy Shaw <[email protected]>
  • Loading branch information
vohi committed Nov 25, 2020
1 parent 45c623c commit cd2f298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auto/gui/text/qtextformat/tst_qtextformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit cd2f298

Please sign in to comment.