diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-09-12 10:42:25 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-14 15:23:15 +0200 |
commit | 1dd4790aeef17f056840bfea6c438075adbaaa03 (patch) | |
tree | 736429b2f1a1cfa31c2ab739dc51da51c0867b20 /tests/auto/corelib/kernel | |
parent | 14f7eb86ca2275d91f284279af5f77205d4ae3c0 (diff) |
Autotests: Use qInstallMessageHandler
qInstallMsgHandler got deprecated in Qt 5.
Change-Id: Ib36983e66b3a8090b99f14e3fd4e210602a3f018
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/kernel')
-rw-r--r-- | tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp index 6e1b9f87a7..091ada1095 100644 --- a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp +++ b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp @@ -3236,9 +3236,8 @@ struct MessageHandlerType : public MessageHandler MessageHandlerType(const int typeId) : MessageHandler(typeId, handler) {} - static void handler(QtMsgType, const char *txt) + static void handler(QtMsgType, const QMessageLogContext &, const QString &msg) { - QString msg = QString::fromLatin1(txt); // Format itself is not important, but basic data as a type name should be included in the output ok = msg.startsWith("QVariant::"); QVERIFY2(ok, (QString::fromLatin1("Message is not started correctly: '") + msg + '\'').toLatin1().constData()); |