diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-06-18 12:48:08 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-18 13:49:18 +0200 |
commit | 1075939a2b040aec3f63a20f27e4f9e502eabc97 (patch) | |
tree | 5e2530b05461c482daaeb16fcd2b59aec8d71598 /src/qml/qml/qqmlcontextwrapper_p.h | |
parent | eec01627c7fcf9b2b25121a9c72b46d9876abc66 (diff) |
Fix parts of workerscript
The worker script creates a special QmlContextWrapper
that doesn't contain many things found in the main thread.
However we still need to be able to cast to it, so it
should be the same class as the regular context wrapper.
Fixes parts of the worker script auto tests.
Change-Id: I3697b2b0080dc4ac967eb447e2efd0f28fbab465
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper_p.h')
-rw-r--r-- | src/qml/qml/qqmlcontextwrapper_p.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper_p.h b/src/qml/qml/qqmlcontextwrapper_p.h index 41026eed32..1ef8f7476d 100644 --- a/src/qml/qml/qqmlcontextwrapper_p.h +++ b/src/qml/qml/qqmlcontextwrapper_p.h @@ -90,24 +90,12 @@ struct Q_QML_EXPORT QmlContextWrapper : Object QV8Engine *v8; // ### temporary, remove bool readOnly; bool ownsContext; + bool isNullWrapper; QQmlGuardedContextData context; QQmlGuard<QObject> scopeObject; }; -struct QmlContextNullWrapper : QmlContextWrapper -{ - Q_MANAGED - QmlContextNullWrapper(QV8Engine *engine, QQmlContextData *context, QObject *scopeObject, bool ownsContext = false) - : QmlContextWrapper(engine, context, scopeObject, ownsContext) - { - vtbl = &static_vtbl; - } - - using Object::get; - static void put(Managed *m, ExecutionContext *ctx, String *name, const Value &value); -}; - } QT_END_NAMESPACE |