summaryrefslogtreecommitdiffstats
path: root/examples/declarative/imageprovider
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/imageprovider')
-rw-r--r--examples/declarative/imageprovider/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/imageprovider/main.cpp b/examples/declarative/imageprovider/main.cpp
index 718e9bb..6e97513 100644
--- a/examples/declarative/imageprovider/main.cpp
+++ b/examples/declarative/imageprovider/main.cpp
@@ -75,7 +75,7 @@ int main(int argc, char ** argv)
QApplication app(argc, argv);
QmlView view;
- view.setUrl(QUrl("qrc:view.qml"));
+ view.setSource(QUrl("qrc:view.qml"));
view.engine()->addImageProvider("colors", new ColorImageProvider);