diff options
author | mae <qt-info@nokia.com> | 2010-03-16 15:15:33 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-03-16 15:18:04 (GMT) |
commit | dc829ac31694f382bf7b8a0702f73409762e36f0 (patch) | |
tree | 4b2ac6701fd98ceb051818d5004f5804f5108eec /src/declarative/util/qdeclarativeview.cpp | |
parent | 3dd972ec56da468ab340afe02f04fa4216c53d63 (diff) | |
download | Qt-dc829ac31694f382bf7b8a0702f73409762e36f0.zip Qt-dc829ac31694f382bf7b8a0702f73409762e36f0.tar.gz Qt-dc829ac31694f382bf7b8a0702f73409762e36f0.tar.bz2 |
Fixes for the module import
The change makes import "url" also load plugins. We know must
decide on the preferred coding style.
Since native types must be registered with a unique uri, we now
generate a stable uri from the plugin path and the import paths.
This way we do not have to call registerTypes() multiple times.
Diffstat (limited to 'src/declarative/util/qdeclarativeview.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativeview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativeview.cpp b/src/declarative/util/qdeclarativeview.cpp index 486553a..59a062a 100644 --- a/src/declarative/util/qdeclarativeview.cpp +++ b/src/declarative/util/qdeclarativeview.cpp @@ -298,6 +298,7 @@ QDeclarativeView::~QDeclarativeView() void QDeclarativeView::setSource(const QUrl& url) { d->source = url; + d->engine.setBaseUrl(url); d->execute(); } |