Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp
  2. index 34db06c..a9be186 100644
  3. --- a/src/qml/compiler/qqmlirbuilder.cpp
  4. +++ b/src/qml/compiler/qqmlirbuilder.cpp
  5. @@ -2062,6 +2062,13 @@ QV4::IR::Expr *JSCodeGen::fallbackNameLookup(const QString &name, int line, int
  6. QQmlPropertyData *pd = lookupQmlCompliantProperty(_contextObject, name, &propertyExistsButForceNameLookup);
  7. if (propertyExistsButForceNameLookup)
  8. return 0;
  9. + if (name == QLatin1String("idOrPropertyName")) {
  10. + QQmlPropertyCache *checker = _contextObject->parent();
  11. + while(checker) {
  12. + // TODO: Look for an object with an id of name, and warn
  13. + checker = checker->parent();
  14. + }
  15. + }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement