forked from qt-creator/qt-creator
QmlJS: Move the exported-C++-type detection out of C++ code.
It now lives in qmljstools/qmljsfindexportedcpptypes, all in one place. Also ensures that the source code is available when a file is being scanned for QML exports. This will enable checking comments for annotations about the URI a plugin is usually imported as. Change-Id: I1da36d0678e0a8d34b171dbe0f6b5690d89eb18b Reviewed-on: http://codereview.qt.nokia.com/3392 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -502,7 +502,9 @@ void Link::loadImplicitDefaultImports(Imports *imports)
|
||||
import.info = info;
|
||||
import.object = new ObjectValue(d->valueOwner);
|
||||
foreach (QmlObjectValue *object,
|
||||
d->valueOwner->cppQmlTypes().typesForImport(defaultPackage, ComponentVersion())) {
|
||||
d->valueOwner->cppQmlTypes().typesForImport(
|
||||
defaultPackage,
|
||||
ComponentVersion(ComponentVersion::MaxVersion, ComponentVersion::MaxVersion))) {
|
||||
import.object->setMember(object->className(), object);
|
||||
}
|
||||
d->importCache.insert(ImportCacheKey(info), import);
|
||||
|
Reference in New Issue
Block a user