From 27a5420e03dd621d6b1249ace765fe4d82811af9 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 25 Jan 2017 20:01:23 +0100 Subject: QQmlImport: Document populateCache method Change-Id: Ibf559814d3d86b23c12a194fa619c207790e1e1d Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlimport.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/qml/qml/qqmlimport.cpp') 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; -- cgit v1.2.3