aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlengine/tst_qqmlengine.cpp')
-rw-r--r--tests/auto/qml/qqmlengine/tst_qqmlengine.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
index c9d3e27afe..3b565bc31c 100644
--- a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
+++ b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
@@ -418,9 +418,9 @@ void tst_qqmlengine::failedCompilation_data()
}
static QStringList warnings;
-static void msgHandler(QtMsgType, const char *warning)
+static void msgHandler(QtMsgType, const QMessageLogContext &, const QString &warning)
{
- warnings << QString::fromUtf8(warning);
+ warnings << warning;
}
void tst_qqmlengine::outputWarningsToStandardError()
@@ -435,11 +435,11 @@ void tst_qqmlengine::outputWarningsToStandardError()
QVERIFY(c.isReady() == true);
warnings.clear();
- QtMsgHandler old = qInstallMsgHandler(msgHandler);
+ QtMessageHandler old = qInstallMessageHandler(msgHandler);
QObject *o = c.create();
- qInstallMsgHandler(old);
+ qInstallMessageHandler(old);
QVERIFY(o != 0);
delete o;
@@ -453,11 +453,11 @@ void tst_qqmlengine::outputWarningsToStandardError()
QCOMPARE(engine.outputWarningsToStandardError(), false);
- old = qInstallMsgHandler(msgHandler);
+ old = qInstallMessageHandler(msgHandler);
o = c.create();
- qInstallMsgHandler(old);
+ qInstallMessageHandler(old);
QVERIFY(o != 0);
delete o;