summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/binding.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/declarative/binding.qdoc')
-rw-r--r--doc/src/declarative/binding.qdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/declarative/binding.qdoc b/doc/src/declarative/binding.qdoc
index b711a08..1d4f9a1 100644
--- a/doc/src/declarative/binding.qdoc
+++ b/doc/src/declarative/binding.qdoc
@@ -87,16 +87,16 @@ void setBrightness(int b)
Next, make an instance of this class visible to the Qml bind engine:
\code
QFxView *view = new QFxView;
-view->setXml("MyUI.qml");
+view->setUrl("MyUI.qml");
MyScreen *screen = new MyScreen;
-QmlBindContext *ctxt = view->bindContext();
-ctxt->setProperty("screen", screen);
+QmlBindContext *ctxt = view->rootContext();
+ctxt->setContextProperty("screen", screen);
view->execute();
\endcode
-\note Bindings must be made after setXml() but before execute().
+\note Bindings must be made after setUrl() but before execute().
Finally, in Qml you can make the appropriate bindings, so in \c "MyUI.qml":