diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-07 03:28:56 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-07 03:28:56 (GMT) |
commit | f0062920559dd44f5f463ea4c3fa2657fceb81fb (patch) | |
tree | 58fd70afedd518c45d9e76847c889b805b07eb7f /src/declarative/qml/qmlengine_p.h | |
parent | 5972bfc6adaa32e4b21eb31a224346f143cbc530 (diff) | |
download | Qt-f0062920559dd44f5f463ea4c3fa2657fceb81fb.zip Qt-f0062920559dd44f5f463ea4c3fa2657fceb81fb.tar.gz Qt-f0062920559dd44f5f463ea4c3fa2657fceb81fb.tar.bz2 |
Improve QmlComponent API
Having to use QUrl::fromLocalFile() is crummy. Add appropriate overloads the QmlComponent, and resolve relative paths against a "base url" set on the QmlEngine.
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r-- | src/declarative/qml/qmlengine_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h index 25f6edf..9171fbb 100644 --- a/src/declarative/qml/qmlengine_p.h +++ b/src/declarative/qml/qmlengine_p.h @@ -129,6 +129,8 @@ public: QScriptEngine scriptEngine; + QUrl baseUrl; + template<class T> struct SimpleList { SimpleList() |