summaryrefslogtreecommitdiffstats
path: root/examples/declarative/objectlistmodel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/objectlistmodel/main.cpp')
-rw-r--r--examples/declarative/objectlistmodel/main.cpp2
1 files changed, 1 insertions, 1 deletions
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"));