aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/examples/tst_examples.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/examples/tst_examples.cpp')
-rw-r--r--tests/auto/quick/examples/tst_examples.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/quick/examples/tst_examples.cpp b/tests/auto/quick/examples/tst_examples.cpp
index f9994a76bc..b9ebb15abb 100644
--- a/tests/auto/quick/examples/tst_examples.cpp
+++ b/tests/auto/quick/examples/tst_examples.cpp
@@ -50,11 +50,11 @@
#include <QQmlEngine>
#include <QQmlError>
-static QtMsgHandler testlibMsgHandler = 0;
-void msgHandlerFilter(QtMsgType type, const char *msg)
+static QtMessageHandler testlibMsgHandler = 0;
+void msgHandlerFilter(QtMsgType type, const QMessageLogContext &ctxt, const QString &msg)
{
if (type == QtCriticalMsg || type == QtFatalMsg)
- (*testlibMsgHandler)(type, msg);
+ (*testlibMsgHandler)(type, ctxt, msg);
}
class tst_examples : public QObject
@@ -129,13 +129,13 @@ tst_examples::~tst_examples()
void tst_examples::init()
{
if (!qstrcmp(QTest::currentTestFunction(), "sgsnippets"))
- testlibMsgHandler = qInstallMsgHandler(msgHandlerFilter);
+ testlibMsgHandler = qInstallMessageHandler(msgHandlerFilter);
}
void tst_examples::cleanup()
{
if (!qstrcmp(QTest::currentTestFunction(), "sgsnippets"))
- qInstallMsgHandler(testlibMsgHandler);
+ qInstallMessageHandler(testlibMsgHandler);
}
/*