From 00e0f85018b1b4fd2c46063aeeec719aa6fe8bdb Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 21 Sep 2021 17:18:34 +0200 Subject: Use qWarning() in preference to QTest::qWarn() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QtTest's custome message handler routes it to the same place and QTest::qWarn() is on its way to deprecation. Change-Id: I467b2ba81c87b2430a66a9f88c9ef0375dbbff45 Reviewed-by: Qt CI Bot Reviewed-by: Tor Arne Vestbø --- tests/auto/quick/qmltests/tst_qmltests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/quick') diff --git a/tests/auto/quick/qmltests/tst_qmltests.cpp b/tests/auto/quick/qmltests/tst_qmltests.cpp index 78c167106..00c6478e9 100644 --- a/tests/auto/quick/qmltests/tst_qmltests.cpp +++ b/tests/auto/quick/qmltests/tst_qmltests.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtWebEngine module of the Qt Toolkit. @@ -236,7 +236,7 @@ private: QSpontaneKeyEvent::setSpontaneous(&me); if (!qApp->notify(window, &me)) - QTest::qWarn("Mouse click event not accepted by receiving window"); + qWarning("Mouse click event not accepted by receiving window"); } }; -- cgit v1.2.3