summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-25 15:08:18 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-25 22:08:09 +0100
commitcd2f29891f3e8e6a9e1de039ae8b6e7337092a59 (patch)
tree7befe9a5c6014533651d0ac692ccf31446f677bc /tests/auto/gui/text
parent45c623c42ac26eafff8e401709fa4c97ed9cd585 (diff)
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>
Diffstat (limited to 'tests/auto/gui/text')
-rw-r--r--tests/auto/gui/text/qtextformat/tst_qtextformat.cpp2
1 files changed, 1 insertions, 1 deletions
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
{