diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-23 06:46:44 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-23 06:46:44 (GMT) |
commit | 5ffd6c0fba0ecc709551e414ed0649de15ac3754 (patch) | |
tree | 7db7006ef6349b48a75729766362e44d06999442 /examples | |
parent | 113e350e36c0ff31824bc238160094814dc3fb4f (diff) | |
download | Qt-5ffd6c0fba0ecc709551e414ed0649de15ac3754.zip Qt-5ffd6c0fba0ecc709551e414ed0649de15ac3754.tar.gz Qt-5ffd6c0fba0ecc709551e414ed0649de15ac3754.tar.bz2 |
Remove QmlView::execute(). QmlView::setSource() does it all now.
Task-number: QT-2538
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/imageprovider/main.cpp | 3 | ||||
-rw-r--r-- | examples/declarative/objectlistmodel/main.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/declarative/imageprovider/main.cpp b/examples/declarative/imageprovider/main.cpp index 9526105..eaaded2 100644 --- a/examples/declarative/imageprovider/main.cpp +++ b/examples/declarative/imageprovider/main.cpp @@ -75,7 +75,6 @@ int main(int argc, char ** argv) QApplication app(argc, argv); QmlView view; - view.setSource(QUrl("qrc:view.qml")); view.engine()->addImageProvider("colors", new ColorImageProvider); @@ -91,7 +90,7 @@ int main(int argc, char ** argv) QmlContext *ctxt = view.rootContext(); ctxt->setContextProperty("myModel", QVariant::fromValue(dataList)); - view.execute(); + view.setSource(QUrl("qrc:view.qml")); view.show(); return app.exec(); diff --git a/examples/declarative/objectlistmodel/main.cpp b/examples/declarative/objectlistmodel/main.cpp index 9e38bea..7ea742b 100644 --- a/examples/declarative/objectlistmodel/main.cpp +++ b/examples/declarative/objectlistmodel/main.cpp @@ -59,7 +59,6 @@ int main(int argc, char ** argv) QApplication app(argc, argv); QmlView view; - view.setSource(QUrl("qrc:view.qml")); QList<QObject*> dataList; dataList.append(new DataObject("Item 1", "red")); @@ -70,7 +69,7 @@ int main(int argc, char ** argv) QmlContext *ctxt = view.rootContext(); ctxt->setContextProperty("myModel", QVariant::fromValue(dataList)); - view.execute(); + view.setSource(QUrl("qrc:view.qml")); view.show(); return app.exec(); |