From 4e012093462f07e7ffd42d4061539c54b4f43ace Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 31 Mar 2014 16:49:14 +0200 Subject: Avoid recompiling of signal handlers defined in QtQuick state changes and Connection objects We can re-use the expression we've compiled at QML type compilation time, as long as we "inject" the signal parameters in the dynamic qml lookup chain. Change-Id: Icc417531c41dea06ff5d033011179af49b03f542 Reviewed-by: Lars Knoll --- src/qml/types/qqmllistmodel_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/types/qqmllistmodel_p.h') diff --git a/src/qml/types/qqmllistmodel_p.h b/src/qml/types/qqmllistmodel_p.h index ece653b11a..54ed18865f 100644 --- a/src/qml/types/qqmllistmodel_p.h +++ b/src/qml/types/qqmllistmodel_p.h @@ -169,7 +169,7 @@ public: QQmlListModelParser() : QQmlCustomParser(QQmlCustomParser::AcceptsSignalHandlers) {} QByteArray compile(const QV4::CompiledData::QmlUnit *qmlUnit, const QList &bindings); - void setCustomData(QObject *, const QByteArray &); + void setCustomData(QObject *, const QByteArray &, QQmlCompiledData *); private: struct ListInstruction -- cgit v1.2.3