From b0afac3daf1cbb9daacbeac0183ef6254de6cc95 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 28 Oct 2013 15:18:31 +0100 Subject: Implement setting of values to resolved QObject properties After the resolution of a property, we can set it by index at run-time instead of via name resolution. Change-Id: I479599dabe343cf9e6582dcda12291aebfcce418 Reviewed-by: Lars Knoll --- src/qml/compiler/qv4isel_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/compiler/qv4isel_p.h') diff --git a/src/qml/compiler/qv4isel_p.h b/src/qml/compiler/qv4isel_p.h index 5b9dbafb50..bdb998fc0b 100644 --- a/src/qml/compiler/qv4isel_p.h +++ b/src/qml/compiler/qv4isel_p.h @@ -152,6 +152,7 @@ public: // to implement by subclasses: virtual void getProperty(V4IR::Expr *base, const QString &name, V4IR::Temp *target) = 0; virtual void getQObjectProperty(V4IR::Expr *base, int propertyIndex, V4IR::Temp *targetTemp) = 0; virtual void setProperty(V4IR::Expr *source, V4IR::Expr *targetBase, const QString &targetName) = 0; + virtual void setQObjectProperty(V4IR::Expr *source, V4IR::Expr *targetBase, int propertyIndex) = 0; virtual void getElement(V4IR::Expr *base, V4IR::Expr *index, V4IR::Temp *target) = 0; virtual void setElement(V4IR::Expr *source, V4IR::Expr *targetBase, V4IR::Expr *targetIndex) = 0; virtual void copyValue(V4IR::Temp *sourceTemp, V4IR::Temp *targetTemp) = 0; -- cgit v1.2.3