forked from qt-creator/qt-creator
QmlJS: Rename Interpreter::Engine -> ValueOwner
Also move to a separate file. Change-Id: I05910e8cf04a533b5d09a1c16e612e3b99b1d606 Reviewed-on: http://codereview.qt.nokia.com/1039 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "qmljseditor.h"
|
||||
|
||||
#include <qmljs/parser/qmljsastvisitor_p.h>
|
||||
#include <qmljs/qmljsvalueowner.h>
|
||||
#include <qmljs/qmljsinterpreter.h>
|
||||
#include <qmljs/qmljslookupcontext.h>
|
||||
#include <qmljs/qmljsmodelmanagerinterface.h>
|
||||
@@ -111,7 +112,7 @@ QString QmlOutlineItem::prettyPrint(const Interpreter::Value *value, const Inter
|
||||
}
|
||||
}
|
||||
|
||||
const QString typeId = context->engine()->typeId(value);
|
||||
const QString typeId = context->valueOwner()->typeId(value);
|
||||
if (typeId == QLatin1String("undefined")) {
|
||||
return QString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user