summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecomponent.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-06 05:46:31 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-07-06 05:46:31 (GMT)
commit49dccb31d1e31c4d538f65c62e20268fc2496a6e (patch)
treea6c930fc8e0056a505475ab24be5233ee8ca859a /src/declarative/qml/qdeclarativecomponent.cpp
parentc9d487b6ed3ac9bb666c2a1fe08252f3c6dcb455 (diff)
parent7369eaf32dd45b6fb4e72c34bee2c9a44c62a5b4 (diff)
downloadQt-49dccb31d1e31c4d538f65c62e20268fc2496a6e.zip
Qt-49dccb31d1e31c4d538f65c62e20268fc2496a6e.tar.gz
Qt-49dccb31d1e31c4d538f65c62e20268fc2496a6e.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts: doc/src/declarative/extending.qdoc
Diffstat (limited to 'src/declarative/qml/qdeclarativecomponent.cpp')
-rw-r--r--src/declarative/qml/qdeclarativecomponent.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp
index 6d15278..8b013fe 100644
--- a/src/declarative/qml/qdeclarativecomponent.cpp
+++ b/src/declarative/qml/qdeclarativecomponent.cpp
@@ -68,7 +68,7 @@ class QByteArray;
/*!
\class QDeclarativeComponent
\since 4.7
- \brief The QDeclarativeComponent class encapsulates a QML component description.
+ \brief The QDeclarativeComponent class encapsulates a QML component definition.
\mainclass
Components are reusable, encapsulated QML elements with well-defined interfaces.
@@ -105,7 +105,7 @@ class QByteArray;
/*!
\qmlclass Component QDeclarativeComponent
\since 4.7
- \brief The Component element encapsulates a QML component description.
+ \brief The Component element encapsulates a QML component definition.
Components are reusable, encapsulated QML elements with well-defined interfaces.
They are often defined in \l {qdeclarativedocuments.html}{Component Files}.
@@ -478,7 +478,8 @@ void QDeclarativeComponent::loadUrl(const QUrl &url)
d->clear();
- if (url.isRelative() && !url.isEmpty())
+ if ((url.isRelative() && !url.isEmpty())
+ || url.scheme() == QLatin1String("file")) // Workaround QTBUG-11929
d->url = d->engine->baseUrl().resolved(url);
else
d->url = url;