Introduced QML/JS references.

Done with ckamm
This commit is contained in:
Roberto Raggi
2010-02-03 10:24:25 +01:00
parent 95849cb0bd
commit ba18e70034
8 changed files with 119 additions and 4 deletions

View File

@@ -670,7 +670,7 @@ int QmlCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
//qDebug() << "expression:" << expression;
if (expression != 0) {
Check evaluate(&interp);
Check evaluate(&interp, link.context());
// Evaluate the expression under cursor.
const Interpreter::Value *value = interp.convertToObject(evaluate(expression , scope));