diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-01-25 20:01:23 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-01-26 15:26:32 +0000 |
commit | 27a5420e03dd621d6b1249ace765fe4d82811af9 (patch) | |
tree | c5aa8739f600bf8bfe4ad108087cc7dc9021f98d /src/qml/qml/qqmlimport.cpp | |
parent | 040a70ea209eb8dcd980c077b625dc0b353db89a (diff) |
QQmlImport: Document populateCache method
Change-Id: Ibf559814d3d86b23c12a194fa619c207790e1e1d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlimport.cpp')
-rw-r--r-- | src/qml/qml/qqmlimport.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp index bd41659f27..00eb13a5a3 100644 --- a/src/qml/qml/qqmlimport.cpp +++ b/src/qml/qml/qqmlimport.cpp @@ -427,6 +427,17 @@ QUrl QQmlImports::baseUrl() const return d->baseUrl; } +/* + \internal + + This method is responsible for populating data of all types visible in this + document's imports into the \a cache for resolution elsewhere (e.g. in JS, + or when loading additional types). + + \note A current limitation of the implementation here is that only C++ types + are added to the type cache. This is due to file imports not having a + registered module. +*/ void QQmlImports::populateCache(QQmlTypeNameCache *cache) const { const QQmlImportNamespace &set = d->unqualifiedset; |