summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcontext.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-15 07:30:56 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-15 07:30:56 (GMT)
commit439a06d29088856bff2ef4b7ce5b9585561c7de9 (patch)
tree008180c4d10f93242287c709db0df9691fc7e29a /src/declarative/qml/qmlcontext.cpp
parent4f7e21dc04ce93531ef68f7694a5e8969448de8b (diff)
parent25d3c3bcf1bebcb033699a5318eb86e22a950e2e (diff)
downloadQt-439a06d29088856bff2ef4b7ce5b9585561c7de9.zip
Qt-439a06d29088856bff2ef4b7ce5b9585561c7de9.tar.gz
Qt-439a06d29088856bff2ef4b7ce5b9585561c7de9.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/qml/qmlcontext.cpp')
-rw-r--r--src/declarative/qml/qmlcontext.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/declarative/qml/qmlcontext.cpp b/src/declarative/qml/qmlcontext.cpp
index c3cee4c..b605869 100644
--- a/src/declarative/qml/qmlcontext.cpp
+++ b/src/declarative/qml/qmlcontext.cpp
@@ -477,35 +477,6 @@ QUrl QmlContext::resolvedUrl(const QUrl &src)
}
/*!
- Resolves the component URI \a src relative to the URL of the
- containing component, and according to the
- \l {QmlEngine::nameSpacePaths()} {namespace paths} of the
- context's engine, returning the resolved URL.
-
- \sa QmlEngine::componentUrl(), setBaseUrl()
-*/
-QUrl QmlContext::resolvedUri(const QUrl &src)
-{
- QmlContext *ctxt = this;
- if (src.isRelative()) {
- if (ctxt) {
- while(ctxt) {
- if (ctxt->d_func()->url.isValid())
- break;
- else
- ctxt = ctxt->parentContext();
- }
-
- if (ctxt)
- return ctxt->d_func()->engine->componentUrl(src, ctxt->d_func()->url);
- }
- return QUrl();
- } else {
- return ctxt->d_func()->engine->componentUrl(src, QUrl());
- }
-}
-
-/*!
Explicitly sets the url both resolveUri() and resolveUrl() will
use for relative references to \a baseUrl.