summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-18 06:05:50 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-18 06:05:50 (GMT)
commitc8e266aaf21f470fd45ac61244466583b503fda2 (patch)
tree694c73b774cf77c590cecdfb1b6d14fcd5052a8b /examples
parent635b329592f26d64eeb6212b6056249b15293dcf (diff)
downloadQt-c8e266aaf21f470fd45ac61244466583b503fda2.zip
Qt-c8e266aaf21f470fd45ac61244466583b503fda2.tar.gz
Qt-c8e266aaf21f470fd45ac61244466583b503fda2.tar.bz2
QmlView API review. See QmlChanges.txt for details.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/imageprovider/main.cpp2
-rw-r--r--examples/declarative/objectlistmodel/main.cpp2
2 files changed, 2 insertions, 2 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);
diff --git a/examples/declarative/objectlistmodel/main.cpp b/examples/declarative/objectlistmodel/main.cpp
index 3f2ac6d..d76a15d 100644
--- a/examples/declarative/objectlistmodel/main.cpp
+++ b/examples/declarative/objectlistmodel/main.cpp
@@ -59,7 +59,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"));
QList<QObject*> dataList;
dataList.append(new DataObject("Item 1", "red"));