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 5eb6b7d..9e38bea 100644
--- a/examples/declarative/objectlistmodel/main.cpp
+++ b/examples/declarative/objectlistmodel/main.cpp
@@ -68,7 +68,7 @@ int main(int argc, char ** argv)
dataList.append(new DataObject("Item 4", "yellow"));
QmlContext *ctxt = view.rootContext();
- ctxt->setContextProperty("myModel", QVariant::fromValue(&dataList));
+ ctxt->setContextProperty("myModel", QVariant::fromValue(dataList));
view.execute();
view.show();