aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/qqmlengine/tst_qqmlengine.cpp2
-rw-r--r--tests/auto/qml/qqmlimport/tst_qqmlimport.cpp2
-rw-r--r--tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp2
-rw-r--r--tests/auto/quick/qquickimage/tst_qquickimage.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
index 0081243a88..35071997ec 100644
--- a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
+++ b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
@@ -852,7 +852,7 @@ void tst_qqmlengine::urlInterceptor()
e.addImportPath(testFileUrl("interception/imports").url());
CustomSelector cs(testFileUrl(""));
cs.m_interceptionPoints = interceptionPoint;
- e.setUrlInterceptor(&cs);
+ e.addUrlInterceptor(&cs);
QQmlComponent c(&e, testFile); //Note that this can get intercepted too
QObject *o = c.create();
if (!o)
diff --git a/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp b/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
index e332d86338..d5d2b061e9 100644
--- a/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
+++ b/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
@@ -233,7 +233,7 @@ void tst_QQmlImport::interceptQmldir()
{
QQmlEngine engine;
QmldirUrlInterceptor interceptor;
- engine.setUrlInterceptor(&interceptor);
+ engine.addUrlInterceptor(&interceptor);
QQmlComponent component(&engine);
component.loadUrl(testFileUrl("interceptQmldir.qml"));
diff --git a/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp b/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
index 9ec3e9557b..8a82db3456 100644
--- a/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
+++ b/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
@@ -419,7 +419,7 @@ void tst_QQMLTypeLoader::intercept()
UrlInterceptor interceptor;
NetworkAccessManagerFactory factory;
- engine.setUrlInterceptor(&interceptor);
+ engine.addUrlInterceptor(&interceptor);
engine.setNetworkAccessManagerFactory(&factory);
QQmlComponent component(&engine, testFileUrl("test_intercept.qml"));
diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp
index f0b44743b9..5dca698cfe 100644
--- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp
+++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp
@@ -1193,7 +1193,7 @@ void tst_qquickimage::urlInterceptor()
{
QQmlEngine engine;
MyInterceptor interceptor {testFileUrl("colors.png")};
- engine.setUrlInterceptor(&interceptor);
+ engine.addUrlInterceptor(&interceptor);
QQmlComponent c(&engine);