qt6-bb10/tests/auto/gui/text/qfont
Marc Mutz 278acae611 tst_QFont: fix printf-format mismatch
Use qUtf16Printable() to convert QString to somthing consumable by
%ls. Fixes the format/argument mismatch on non-Windows platforms:

    tst_qfont.cpp: In member function ‘void tst_QFont::italicOblique()’:
    tst_qfont.cpp:153:67: warning: format ‘%ls’ expects argument of type ‘wchar_t*’, but argument 2 has type ‘const ushort*’ {aka ‘const short unsigned int*’} [-Wformat=]
      153 |                 QVERIFY2(f.italic(), qPrintable(QString::asprintf("Failed for font \"%ls\"", f.family().utf16())));
          |                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~
          |                                                                                                              |
          |                                                                                                              const ushort* {aka const short unsigned int*}

Amends 4bf82909f1.

Change-Id: I0c7e2dca91a093835d7dba8bff2e5ea78d3a926e
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2023-05-10 12:00:29 +02:00
..
.gitignore
BLACKLIST Fix QFontDatabase::hasFamily() for ambiguous families 2022-08-15 18:23:43 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
datastream.515 Fix deserializing Qt 5.x fonts through QDataStream 2021-11-18 23:41:02 +01:00
tst_qfont.cpp tst_QFont: fix printf-format mismatch 2023-05-10 12:00:29 +02:00
weirdfont.otf Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00