diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-09-26 13:30:47 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-26 06:57:17 +0200 |
commit | 597933b6b72c8392d3d5e1db4d379620b2f193a7 (patch) | |
tree | 31d18b27605b808930915b5fb1ce5a021e5dfc34 /src/qmltest | |
parent | dc4f3e0d9885b545bebb5ceda086a8d7cf7b3b0f (diff) |
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/qmltest')
-rw-r--r-- | src/qmltest/quicktestevent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(action)])).toAscii().data()); + QWARN(warning.arg(QString::fromLatin1(mouseActionNames[static_cast<int>(action)])).toAscii().data()); } } |