diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-06 05:31:56 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-06 05:31:56 (GMT) |
commit | 067b419199b369b6c81fa1ae387257aa87cab20c (patch) | |
tree | 20ef3dc7c3def67fd74117f50fdae3be054ee836 /src/declarative/qml/qmlcontextscriptclass_p.h | |
parent | 9e4b877430a6811079d209656587ea228334ed34 (diff) | |
download | Qt-067b419199b369b6c81fa1ae387257aa87cab20c.zip Qt-067b419199b369b6c81fa1ae387257aa87cab20c.tar.gz Qt-067b419199b369b6c81fa1ae387257aa87cab20c.tar.bz2 |
Improve scope handling
Diffstat (limited to 'src/declarative/qml/qmlcontextscriptclass_p.h')
-rw-r--r-- | src/declarative/qml/qmlcontextscriptclass_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlcontextscriptclass_p.h b/src/declarative/qml/qmlcontextscriptclass_p.h index acb8926..761a115 100644 --- a/src/declarative/qml/qmlcontextscriptclass_p.h +++ b/src/declarative/qml/qmlcontextscriptclass_p.h @@ -69,6 +69,8 @@ public: QScriptValue newContext(QmlContext *); + QmlContext *contextFromValue(const QScriptValue &); + protected: virtual QScriptClass::QueryFlags queryProperty(Object *, const Identifier &, QScriptClass::QueryFlags flags); @@ -76,8 +78,12 @@ protected: virtual void setProperty(Object *, const Identifier &name, const QScriptValue &); private: + QScriptClass::QueryFlags queryProperty(QmlContext *, const Identifier &, + QScriptClass::QueryFlags flags); + QmlEngine *engine; + QmlContext *lastContext; QmlTypeNameCache::Data *lastData; int lastPropertyIndex; int lastDefaultObject; |