forked from qt-creator/qt-creator
Changed QML reading in QML designer to use the interpreter for property types.
This commit is contained in:
@@ -302,6 +302,9 @@ bool Check::visit(UiArrayBinding *ast)
|
||||
return true;
|
||||
}
|
||||
|
||||
/// When something is changed here, also change ReadingContext::lookupProperty in
|
||||
/// texttomodelmerger.cpp
|
||||
/// ### Maybe put this into the context as a helper method.
|
||||
const Value *Check::checkScopeObjectMember(const UiQualifiedId *id)
|
||||
{
|
||||
QList<const ObjectValue *> scopeObjects = _context.scopeChain().qmlScopeObjects;
|
||||
@@ -311,6 +314,9 @@ const Value *Check::checkScopeObjectMember(const UiQualifiedId *id)
|
||||
if (! id)
|
||||
return 0; // ### error?
|
||||
|
||||
if (! id->name) // possible after error recovery
|
||||
return 0;
|
||||
|
||||
QString propertyName = id->name->asString();
|
||||
|
||||
if (propertyName == QLatin1String("id") && ! id->next)
|
||||
|
Reference in New Issue
Block a user