aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlscript_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-10-09 00:24:55 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-11 22:55:02 +0200
commit774963f52f569e637f45d6c6079121253e54b61b (patch)
treeb007dcdbe49a90db727593d4e1966c92d4622dee /src/qml/qml/qqmlscript_p.h
parentc39393e7de5b808adbc9c5771ecca161c9660d7c (diff)
Compile JS functions as part of the QQmlCompiler run in the loader thread
...instead of extracting the function body as a string and compiling it in the GUI thread. Change-Id: I3c3108f6e35464b5581a2d8b5799e7285858ce4d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlscript_p.h')
-rw-r--r--src/qml/qml/qqmlscript_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlscript_p.h b/src/qml/qml/qqmlscript_p.h
index f8786b0a2d..7aecba993b 100644
--- a/src/qml/qml/qqmlscript_p.h
+++ b/src/qml/qml/qqmlscript_p.h
@@ -67,7 +67,7 @@ QT_BEGIN_NAMESPACE
class QByteArray;
class QQmlPropertyCache;
-namespace QQmlJS { class Engine; namespace AST { class Node; class StringLiteral; class UiProgram; } }
+namespace QQmlJS { class Engine; namespace AST { class Node; class StringLiteral; class UiProgram; class FunctionDeclaration; } }
namespace QQmlCompilerTypes { struct BindingReference; struct ComponentCompileState; }
namespace QQmlScript {
@@ -433,8 +433,8 @@ public:
{
DynamicSlot();
+ QQmlJS::AST::FunctionDeclaration *funcDecl;
QHashedStringRef name;
- QString body;
QList<QByteArray> parameterNames;
LocationSpan location;