diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-10-09 09:37:08 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-11 22:55:08 +0200 |
commit | 28f67263a181e2d99b2c240f9d698bf64100ac92 (patch) | |
tree | 3c7c6287e00d6032ff53a78b7a9b0caa51cc9d23 /src/qml/qml/qqmlcompiler_p.h | |
parent | 774963f52f569e637f45d6c6079121253e54b61b (diff) |
Compile signal handler expressions in the loader thread
Handle them similar to function declarations, except that we need to synthesize
the expression into a function declaration that includes the signal parameter
names. This is done quite similar to the code path in the new compiler.
Change-Id: I751081f7f1052692da6e2ed60c7f5c017372d829
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r-- | src/qml/qml/qqmlcompiler_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h index 1d1306fba4..c8e5c907e0 100644 --- a/src/qml/qml/qqmlcompiler_p.h +++ b/src/qml/qml/qqmlcompiler_p.h @@ -470,6 +470,12 @@ private: int compiledFunctionIndex; // index in functionToCompile }; QList<CompiledMetaMethod> compiledMetaMethods; + struct CompiledSignalHandlerExpression + { + QQmlScript::Value *signal; + int compiledHandlerIndex; // index in functionsToCompile + }; + QList<CompiledSignalHandlerExpression> compiledSignalHandlers; // Compiler component statistics. Only collected if QML_COMPILER_STATS=1 struct ComponentStat |