From be67e10cde56ba905a8bb85bdb5ecab2b3038ede Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Mon, 7 Sep 2009 15:09:01 +1000 Subject: Resolve qualified type even if not localfile. If remote content is fully-qualified to a unique URL, we do not need any qmldir (and for remote content, we don't support that yet). --- src/declarative/qml/qmlengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp index 6d3506c..e3d4840 100644 --- a/src/declarative/qml/qmlengine.cpp +++ b/src/declarative/qml/qmlengine.cpp @@ -1509,6 +1509,10 @@ public: if (s) { if (s->find(unqualifiedtype,vmajor,vminor,type_return,url_return)) return true; + if (s->urls.count() == 1 && !s->isBuiltin[0] && !s->isLibrary[0] && url_return) { + *url_return = QUrl(s->urls[0]+"/").resolved(QUrl(QLatin1String(unqualifiedtype + ".qml"))); + return true; + } } if (url_return) { *url_return = base.resolved(QUrl(QLatin1String(type + ".qml"))); -- cgit v0.12