Skip to content
Snippets Groups Projects
Commit 7a8c07a1 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: The Script type is no longer implicitly available.

parent 6ba64351
No related branches found
No related tags found
No related merge requests found
......@@ -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())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment