summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-08-11 14:13:45 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-08-11 21:50:51 +0200
commit761f32ae2ad98e8fb12a4f05b45b4aa277e47a1b (patch)
treedd116b7f71691fa833e15347831ce13479037dba /tests/auto/other
parentf0bb95cb6330cdb3e1b749ed5b1c222bbe3050bc (diff)
Fix some compiler warnings from deprecated QFont constructor
QFont should be constructed with a list of font families. Pick-to: 6.2 Change-Id: I61141b25d3f6e25f4fea141acbfa8e164d7af58f Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tests/auto/other')
-rw-r--r--tests/auto/other/qaccessibility/tst_qaccessibility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
index b63092852a..615a1a1617 100644
--- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
+++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
@@ -1763,7 +1763,7 @@ void tst_QAccessibility::textEditTest()
QString text = "<p>hello world.<br/>How are you today?</p><p>I'm fine, thanks</p>";
edit.setHtml(text);
if (pass == 1) {
- QFont font("Helvetica");
+ QFont font(QStringList{"Helvetica"});
font.setPointSizeF(12.5);
font.setWordSpacing(1.1);
edit.document()->setDefaultFont(font);