From 597933b6b72c8392d3d5e1db4d379620b2f193a7 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 26 Sep 2011 13:30:47 +1000 Subject: Call QWARN() instead of QTest::qWarn(). The QWARN macro wraps QTest::qWarn(), but the former is the public API and the latter is merely an implementation detail that is subject to change. Change-Id: I02ae5ea384875afb7f235ef8dff0768a56afaa53 Reviewed-on: http://codereview.qt-project.org/5486 Reviewed-by: Qt Sanity Bot Reviewed-by: Rohan McGovern --- src/qmltest/quicktestevent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmltest') diff --git a/src/qmltest/quicktestevent.cpp b/src/qmltest/quicktestevent.cpp index f573899d98..4e62d4a827 100644 --- a/src/qmltest/quicktestevent.cpp +++ b/src/qmltest/quicktestevent.cpp @@ -162,7 +162,7 @@ namespace QtQuickTest static const char *mouseActionNames[] = { "MousePress", "MouseRelease", "MouseClick", "MouseDoubleClick", "MouseMove" }; QString warning = QString::fromLatin1("Mouse event \"%1\" not accepted by receiving window"); - QTest::qWarn(warning.arg(QString::fromLatin1(mouseActionNames[static_cast(action)])).toAscii().data()); + QWARN(warning.arg(QString::fromLatin1(mouseActionNames[static_cast(action)])).toAscii().data()); } } -- cgit v1.2.3