forked from qt-creator/qt-creator
QmlJS: The Script type is no longer implicitly available.
This commit is contained in:
@@ -160,11 +160,6 @@ void Link::populateImportedTypes(Interpreter::ObjectValue *typeEnv, Document::Pt
|
||||
if (! (doc->qmlProgram() && doc->qmlProgram()->imports))
|
||||
return;
|
||||
|
||||
// Add the implicitly available Script type
|
||||
const ObjectValue *scriptValue = engine()->cppQmlTypes().typeForImport("Script");
|
||||
if (scriptValue)
|
||||
typeEnv->setProperty("Script", scriptValue);
|
||||
|
||||
// implicit imports:
|
||||
// qml files in the same directory are available without explicit imports
|
||||
foreach (Document::Ptr otherDoc, _snapshot.documentsInDirectory(doc->path())) {
|
||||
|
||||
Reference in New Issue
Block a user