From 43f1cc98bf1899ae29e3fb0b3bf5054d5a23d4b2 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sat, 2 Nov 2013 22:46:25 +0100 Subject: Initial support for accelerated property access to QML singletons and enums With this patch we determine the meta-object of singletons, propagate it into the IR and load them separately using a dedicated run-time function. In addition enums in singletons and QML types are resolved at compile time. Change-Id: I01ce1288391b476d1c9af669cb2987a44c885703 Reviewed-by: Lars Knoll --- src/qml/qml/qqmlcontextwrapper_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/qml/qqmlcontextwrapper_p.h') diff --git a/src/qml/qml/qqmlcontextwrapper_p.h b/src/qml/qml/qqmlcontextwrapper_p.h index 603a5af2fd..89ace7090c 100644 --- a/src/qml/qml/qqmlcontextwrapper_p.h +++ b/src/qml/qml/qqmlcontextwrapper_p.h @@ -97,6 +97,7 @@ struct Q_QML_EXPORT QmlContextWrapper : Object static void registerQmlDependencies(ExecutionEngine *context, const CompiledData::Function *compiledFunction); ReturnedValue idObjectsArray(); + ReturnedValue qmlSingletonWrapper(const StringRef &name); QV8Engine *v8; // ### temporary, remove bool readOnly; -- cgit v1.2.3