summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp b/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
index 35d2a24f..23e6dd95 100644
--- a/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
+++ b/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
@@ -239,21 +239,21 @@ void tst_QDeclarativeViewer::loading()
}
static int numberOfWarnings = 0;
-static void checkWarnings(QtMsgType, const char *)
+static void checkWarnings(QtMsgType, const QMessageLogContext &, const QString &)
{
numberOfWarnings++;
}
void tst_QDeclarativeViewer::fileBrowser()
{
- QtMsgHandler previousMsgHandler = qInstallMsgHandler(checkWarnings);
+ QtMessageHandler previousMsgHandler = qInstallMessageHandler(checkWarnings);
QDeclarativeViewer *viewer = new QDeclarativeViewer();
QVERIFY(viewer);
viewer->setUseNativeFileBrowser(false);
viewer->openFile();
viewer->show();
QCoreApplication::processEvents();
- qInstallMsgHandler(previousMsgHandler);
+ qInstallMessageHandler(previousMsgHandler);
// QTBUG-15720
QVERIFY(numberOfWarnings == 0);