diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-20 11:32:56 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-20 13:53:47 +0200 |
commit | 14cd261513174e0006ebdd5b3605347621c7e36b (patch) | |
tree | f3b86ebd1f5f0f06e8effe7c405e44c3e73f2055 /src | |
parent | bf3e56d823dd868928da87cc5f57232f62983a48 (diff) |
QQmlJSImporter: Expose the imported objects
Change-Id: I1257d4efe1813d2b95a37d95a82c21c30fc15591
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor_p.h b/src/qmlcompiler/qqmljsimportvisitor_p.h index 9ebe7f20fd..0255450c68 100644 --- a/src/qmlcompiler/qqmljsimportvisitor_p.h +++ b/src/qmlcompiler/qqmljsimportvisitor_p.h @@ -55,6 +55,7 @@ public: QQmlJSScope::Ptr result() const; QList<QQmlJS::DiagnosticMessage> errors() const { return m_errors; } + QHash<QString, QQmlJSScope::ConstPtr> imports() const { return m_rootScopeImports; } protected: bool visit(QQmlJS::AST::UiProgram *) override; |