From 08444bab1bf25e20837ea47b647a5b1216caa05c Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 13 Sep 2012 14:35:42 +0200 Subject: Autotests: Use qInstallMessageHandler qInstallMsgHandler got deprecated in Qt 5. Change-Id: Icb6423c7d9f7e507ba36376b0af5ad183379c494 Reviewed-by: Martin Jones --- tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/quick/qquicklistview') diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp index c2bcd54c48..7c166c5795 100644 --- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp +++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp @@ -259,7 +259,7 @@ private: } #endif - static void errorMsgHandler(QtMsgType, const char *) + static void errorMsgHandler(QtMsgType, const QMessageLogContext &, const QString &) { ++m_errorCount; } @@ -6784,7 +6784,7 @@ void tst_QQuickListView::parentBinding() QQuickView *window = createView(); m_errorCount = 0; - QtMsgHandler old = qInstallMsgHandler(errorMsgHandler); + QtMessageHandler old = qInstallMessageHandler(errorMsgHandler); window->setSource(testFileUrl("parentBinding.qml")); window->show(); @@ -6805,7 +6805,7 @@ void tst_QQuickListView::parentBinding() // there should be no transient binding error QVERIFY(!m_errorCount); - qInstallMsgHandler(old); + qInstallMessageHandler(old); delete window; } -- cgit v1.2.3