summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcomponent.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-07 08:17:33 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-07 09:10:35 (GMT)
commit6c901f67fb2f2e73fa362e72d985a04fa57cdf48 (patch)
tree583aab2bd1a6ccac33d310df3e8149da0aece0d5 /src/declarative/qml/qmlcomponent.cpp
parent131541866b374b90e04af75ec1382154c78b69b9 (diff)
downloadQt-6c901f67fb2f2e73fa362e72d985a04fa57cdf48.zip
Qt-6c901f67fb2f2e73fa362e72d985a04fa57cdf48.tar.gz
Qt-6c901f67fb2f2e73fa362e72d985a04fa57cdf48.tar.bz2
Doc
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r--src/declarative/qml/qmlcomponent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp
index 3474487..a9f5442 100644
--- a/src/declarative/qml/qmlcomponent.cpp
+++ b/src/declarative/qml/qmlcomponent.cpp
@@ -270,18 +270,18 @@ QmlComponent::QmlComponent(QmlEngine *engine, const QUrl &url, QObject *parent)
}
/*!
- Create a QmlComponent from the given \a url and give it the specified
+ Create a QmlComponent from the given \a fileName and give it the specified
\a parent and \a engine.
\sa loadUrl()
*/
-QmlComponent::QmlComponent(QmlEngine *engine, const QString &url,
+QmlComponent::QmlComponent(QmlEngine *engine, const QString &fileName,
QObject *parent)
: QObject(*(new QmlComponentPrivate), parent)
{
Q_D(QmlComponent);
d->engine = engine;
- loadUrl(QUrl(url));
+ loadUrl(QUrl::fromLocalFile(fileName));
}
/*!