Changed QML reading in QML designer to use the interpreter for property types.

This commit is contained in:
Erik Verbruggen
2010-04-06 11:44:55 +02:00
parent 80cf99891b
commit 491bf79d5f
5 changed files with 327 additions and 165 deletions

View File

@@ -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)