From cd2f29891f3e8e6a9e1de039ae8b6e7337092a59 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 25 Nov 2020 15:08:18 +0100 Subject: 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 --- tests/auto/gui/text/qtextformat/tst_qtextformat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/gui/text') diff --git a/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp b/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp index 3a0afcffa1..6e52014857 100644 --- a/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp +++ b/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp @@ -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 { -- cgit v1.2.3