Skip to content

Commit

Permalink
Call QWARN() instead of QTest::qWarn().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason McDonald authored and Qt by Nokia committed Sep 26, 2011
1 parent dc4f3e0 commit 597933b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qmltest/quicktestevent.cpp
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 597933b

Please sign in to comment.