diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-07-15 01:09:31 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-07-15 02:02:32 (GMT) |
commit | 68e47e91af6edca3c714cc3258b65dd88c0ee1e4 (patch) | |
tree | 914ff8bba8e702673a40e55411a47b74522e8016 /src/declarative/qml/qmldom_p.h | |
parent | fa0159762ce65c99907dbcb68d1c10e1a126468f (diff) | |
download | Qt-68e47e91af6edca3c714cc3258b65dd88c0ee1e4.zip Qt-68e47e91af6edca3c714cc3258b65dd88c0ee1e4.tar.gz Qt-68e47e91af6edca3c714cc3258b65dd88c0ee1e4.tar.bz2 |
Expose qml import statements in QmlDom
Diffstat (limited to 'src/declarative/qml/qmldom_p.h')
-rw-r--r-- | src/declarative/qml/qmldom_p.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/declarative/qml/qmldom_p.h b/src/declarative/qml/qmldom_p.h index 5345c44..b15844a 100644 --- a/src/declarative/qml/qmldom_p.h +++ b/src/declarative/qml/qmldom_p.h @@ -66,7 +66,7 @@ public: ~QmlDomDocumentPrivate(); QList<QmlError> errors; - QList<QUrl> imports; + QList<QmlDomImport> imports; QmlParser::Object *root; QList<int> automaticSemicolonOffsets; }; @@ -129,6 +129,21 @@ public: QmlParser::Value *value; }; +class QmlDomImportPrivate : public QSharedData +{ +public: + QmlDomImportPrivate(); + QmlDomImportPrivate(const QmlDomImportPrivate &); + ~QmlDomImportPrivate(); + + enum Type { Library, File }; + + Type type; + QString uri; + QString version; + QString qualifier; +}; + QT_END_NAMESPACE #endif // QMLDOM_P_H |