diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-25 15:08:18 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-25 22:08:09 +0100 |
commit | cd2f29891f3e8e6a9e1de039ae8b6e7337092a59 (patch) | |
tree | 7befe9a5c6014533651d0ac692ccf31446f677bc /tests/auto | |
parent | 45c623c42ac26eafff8e401709fa4c97ed9cd585 (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')
-rw-r--r-- | tests/auto/gui/text/qtextformat/tst_qtextformat.cpp | 2 |
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 { |