diff options
author | Sebastian Sauer <[email protected]> | 2014-10-13 18:12:06 +0700 |
---|---|---|
committer | Kai Koehne <[email protected]> | 2014-10-15 11:16:18 +0200 |
commit | 97c955a323c243c503f7076e492abe6f35b746a3 (patch) | |
tree | 6fb1d1a62d07ac06f09c36888ddc34bb2a767509 /src/libs/qmljs/qmljsinterpreter.cpp | |
parent | 9367ad36bec234e9b094e2c503412188538f02e2 (diff) |
Add QmlPrototypeReference::document() getter
Enable access to the private Document
instance in the same way its done
already in the ASTObjectValue class
by adding a const getter.
Change-Id: I0581e527bb766fc72682f2e38d0d8d52d4452deb
Reviewed-by: Kai Koehne <[email protected]>
Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsinterpreter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index 5f9a02573b9..967e6788aae 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -2076,6 +2076,11 @@ UiQualifiedId *QmlPrototypeReference::qmlTypeName() const return m_qmlTypeName; } +const Document *QmlPrototypeReference::document() const +{ + return m_doc; +} + const Value *QmlPrototypeReference::value(ReferenceContext *referenceContext) const { return referenceContext->context()->lookupType(m_doc, m_qmlTypeName); |