From 93047640a252a27daf303c80b2bce2d04bfd12ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 17 Mar 2025 16:51:13 +0100 Subject: [PATCH] QTest::ignoreMessage: Clarify what encoding we assume for parameter So future-me and others don't have to look through the source code to figure it out. Pick-to: 6.8 6.5 Change-Id: I1f6e46cec256112226cad4d24ed52e4818635ae8 Reviewed-by: Giuseppe D'Angelo Reviewed-by: Thiago Macieira (cherry picked from commit d2d74673f3dccc04894f2ea67fc7662cc6ef400b) Reviewed-by: Qt Cherry-pick Bot --- src/testlib/qtestcase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 123927167eb..f16f1cbbe34 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -2187,6 +2187,8 @@ void QTest::qWarn(const char *message, const char *file, int line) The example above tests that QDir::mkdir() outputs the right warning when invoked with an invalid file name. + + \note \a message will be interpreted as UTF-8. */ void QTest::ignoreMessage(QtMsgType type, const char *message) {