From 4c953b1592956b712eca60eec070868a567c04c1 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 20 Sep 2013 12:09:04 +0200 Subject: [new compiler] Fix scope object for binding expressions in signal handlers of attached objects In populateInstance the QObject instance to populate with properties, etc. may not necessarily be the scope object (in qml lookup terms), so it needs to be provided as a separate parameter. Change-Id: I05db123c249e8582469bcfb76f56eb3f7bfbc4a2 Reviewed-by: Lars Knoll --- src/qml/qml/qqmlobjectcreator_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlobjectcreator_p.h') diff --git a/src/qml/qml/qqmlobjectcreator_p.h b/src/qml/qml/qqmlobjectcreator_p.h index 78e33ccb01..4b29295f0a 100644 --- a/src/qml/qml/qqmlobjectcreator_p.h +++ b/src/qml/qml/qqmlobjectcreator_p.h @@ -118,7 +118,7 @@ public: private: QObject *createInstance(int index, QObject *parent = 0); - bool populateInstance(int index, QObject *instance, QQmlRefPointer cache); + bool populateInstance(int index, QObject *instance, QQmlRefPointer cache, QObject *scopeObjectForJavaScript); void setupBindings(); bool setPropertyValue(QQmlPropertyData *property, int index, const QV4::CompiledData::Binding *binding); -- cgit v1.2.3