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/declarative/objectlistmodel | |
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/declarative/objectlistmodel')
-rw-r--r-- | examples/declarative/objectlistmodel/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |