diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-08 03:54:42 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-08 03:54:42 (GMT) |
commit | f5d0eed0973ff6e9054dfa2003d553117a5e272d (patch) | |
tree | bc09669eb80b206e5f8faf97044cf803d0f6de10 /src/declarative/qml/qmlobjectscriptclass.cpp | |
parent | 16cf54b2a1f8631c59950989691f6384c0550040 (diff) | |
download | Qt-f5d0eed0973ff6e9054dfa2003d553117a5e272d.zip Qt-f5d0eed0973ff6e9054dfa2003d553117a5e272d.tar.gz Qt-f5d0eed0973ff6e9054dfa2003d553117a5e272d.tar.bz2 |
Update to use new QScriptDeclarativeClass API
Diffstat (limited to 'src/declarative/qml/qmlobjectscriptclass.cpp')
-rw-r--r-- | src/declarative/qml/qmlobjectscriptclass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlobjectscriptclass.cpp b/src/declarative/qml/qmlobjectscriptclass.cpp index 9448dcc..84470fc 100644 --- a/src/declarative/qml/qmlobjectscriptclass.cpp +++ b/src/declarative/qml/qmlobjectscriptclass.cpp @@ -150,9 +150,9 @@ QmlObjectScriptClass::queryProperty(QObject *obj, const Identifier &name, return rv; } - if (!evalContext && context) { + if (!evalContext && context()) { // Global object, QScriptContext activation object, QmlContext object - QScriptValue scopeNode = scopeChainValue(context, 3); + QScriptValue scopeNode = scopeChainValue(context(), -3); Q_ASSERT(scopeNode.isValid()); Q_ASSERT(scriptClass(scopeNode) == enginePrivate->contextClass); |