summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-04-27 01:00:20 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-04-27 01:00:20 +0200
commite282db62b1fca2ea133162bc6254595a42f4b861 (patch)
treeafb0bb98f19153e25f7f3c6b200d579e731baeae /examples
parent1b30e8f94cc15352583e8e1f27139676683f62af (diff)
parent2f397aa15a13efbadf6c1bc378bb134ac1e655c5 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Diffstat (limited to 'examples')
-rw-r--r--examples/qml/networkaccessmanagerfactory/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qml/networkaccessmanagerfactory/main.cpp b/examples/qml/networkaccessmanagerfactory/main.cpp
index 95dfb5990d..a0fddf50c6 100644
--- a/examples/qml/networkaccessmanagerfactory/main.cpp
+++ b/examples/qml/networkaccessmanagerfactory/main.cpp
@@ -133,7 +133,8 @@ int main(int argc, char ** argv)
source = QUrl::fromLocalFile(parser.positionalArguments().first());
QQuickView view;
- view.engine()->setNetworkAccessManagerFactory(new MyNetworkAccessManagerFactory);
+ MyNetworkAccessManagerFactory networkManagerFactory;
+ view.engine()->setNetworkAccessManagerFactory(&networkManagerFactory);
view.setSource(source);
view.show();