summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmldom.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2009-05-07 09:33:30 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2009-05-07 09:33:30 (GMT)
commit495150413916a9a41cdffc5879f36a6e16e7866c (patch)
treec390a023b505c4fef479580b89e17491657d6d8c /src/declarative/qml/qmldom.h
parent02b0285ba6c2382d801be8d9259f91d1bfbc94d7 (diff)
downloadQt-495150413916a9a41cdffc5879f36a6e16e7866c.zip
Qt-495150413916a9a41cdffc5879f36a6e16e7866c.tar.gz
Qt-495150413916a9a41cdffc5879f36a6e16e7866c.tar.bz2
Fix loading of components containing sub components through QmlDom
Pass a (optional) url to QmlDomDocument::load so that the compiler can find referenced components
Diffstat (limited to 'src/declarative/qml/qmldom.h')
-rw-r--r--src/declarative/qml/qmldom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmldom.h b/src/declarative/qml/qmldom.h
index daca888..f90fb08 100644
--- a/src/declarative/qml/qmldom.h
+++ b/src/declarative/qml/qmldom.h
@@ -73,7 +73,7 @@ public:
int version() const;
QList<QmlError> errors() const;
- bool load(QmlEngine *, const QByteArray &);
+ bool load(QmlEngine *, const QByteArray &, const QUrl & = QUrl());
QByteArray save() const;
QmlDomObject rootObject() const;