diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-14 04:28:32 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-14 04:28:32 (GMT) |
commit | e36c3f700280ecca2d6333987897a3377772d385 (patch) | |
tree | 701012ae9ed08ce88181c8f7eb238d601fa57ebd /src/declarative/qml | |
parent | f19b9cbdf824b8943acc785c50d13fade415bd33 (diff) | |
download | Qt-e36c3f700280ecca2d6333987897a3377772d385.zip Qt-e36c3f700280ecca2d6333987897a3377772d385.tar.gz Qt-e36c3f700280ecca2d6333987897a3377772d385.tar.bz2 |
Doc: more mention of using QUrl::fromLocalFile() for URLs on local filesystem
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index e180374..d319e8f 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -320,6 +320,9 @@ QDeclarativeComponent::QDeclarativeComponent(QDeclarativeEngine *engine, QObject Create a QDeclarativeComponent from the given \a url and give it the specified \a parent and \a engine. + Ensure that the URL provided is full and correct, in particular, use + \l QUrl::fromLocalFile() when loading a file from the local filesystem. + \sa loadUrl() */ QDeclarativeComponent::QDeclarativeComponent(QDeclarativeEngine *engine, const QUrl &url, QObject *parent) @@ -409,6 +412,9 @@ QDeclarativeContext *QDeclarativeComponent::creationContext() const /*! Load the QDeclarativeComponent from the provided \a url. + + Ensure that the URL provided is full and correct, in particular, use + \l QUrl::fromLocalFile() when loading a file from the local filesystem. */ void QDeclarativeComponent::loadUrl(const QUrl &url) { |