diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-09-13 14:35:42 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-14 14:51:47 +0200 |
commit | 08444bab1bf25e20837ea47b647a5b1216caa05c (patch) | |
tree | 65fc2e90bbf29f22a92deb322bd4a9de939e8e17 /tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | |
parent | 75b9cd92dc5291ce12d8d609c5d721246044ffa0 (diff) |
Autotests: Use qInstallMessageHandler
qInstallMsgHandler got deprecated in Qt 5.
Change-Id: Icb6423c7d9f7e507ba36376b0af5ad183379c494
Reviewed-by: Martin Jones <martin.r.jones@gmail.com>
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r-- | tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |