summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-13 03:04:32 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-13 03:04:32 (GMT)
commite19f299dfc77a9efc223203655df95175355d527 (patch)
tree7a17ad7544d3b313845631ccac812d8d98c6421e /doc/src/declarative
parentff0020481398e7c109973949260a42711c4cdcdc (diff)
downloadQt-e19f299dfc77a9efc223203655df95175355d527.zip
Qt-e19f299dfc77a9efc223203655df95175355d527.tar.gz
Qt-e19f299dfc77a9efc223203655df95175355d527.tar.bz2
Doc: Use QUrl::fromLocalFile().
Diffstat (limited to 'doc/src/declarative')
-rw-r--r--doc/src/declarative/qtbinding.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/declarative/qtbinding.qdoc b/doc/src/declarative/qtbinding.qdoc
index 181c504..fa0d13c 100644
--- a/doc/src/declarative/qtbinding.qdoc
+++ b/doc/src/declarative/qtbinding.qdoc
@@ -74,7 +74,7 @@ an example of loading a QML document, and creating an object from it.
\code
QDeclarativeEngine *engine = new QDeclarativeEngine(parent);
-QDeclarativeComponent component(engine, QUrl("main.qml"));
+QDeclarativeComponent component(engine, QUrl::fromLocalFile("main.qml"));
QObject *myObject = component.create();
\endcode