diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-13 03:04:32 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-13 03:04:32 (GMT) |
commit | e19f299dfc77a9efc223203655df95175355d527 (patch) | |
tree | 7a17ad7544d3b313845631ccac812d8d98c6421e /doc/src/declarative | |
parent | ff0020481398e7c109973949260a42711c4cdcdc (diff) | |
download | Qt-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.qdoc | 2 |
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 |