diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2011-03-21 02:25:47 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2011-03-21 05:09:41 (GMT) |
commit | 521a13e3f0a66c31bbf95304de3c7384042a39aa (patch) | |
tree | 1ad63f684b8e617d7ebc60a817eba940caacc487 /src/declarative/qml | |
parent | 40db21b1d8a020291f0a0660d30491b49f49885b (diff) | |
download | Qt-521a13e3f0a66c31bbf95304de3c7384042a39aa.zip Qt-521a13e3f0a66c31bbf95304de3c7384042a39aa.tar.gz Qt-521a13e3f0a66c31bbf95304de3c7384042a39aa.tar.bz2 |
Fix writing to an attached property from script.
Change-Id: I80c228092271d4d9c5694607da7a123d06739731
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qdeclarativetypenamescriptclass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativetypenamescriptclass.cpp b/src/declarative/qml/qdeclarativetypenamescriptclass.cpp index d3e2025..0314a7a 100644 --- a/src/declarative/qml/qdeclarativetypenamescriptclass.cpp +++ b/src/declarative/qml/qdeclarativetypenamescriptclass.cpp @@ -158,7 +158,7 @@ void QDeclarativeTypeNameScriptClass::setProperty(Object *o, const Identifier &n Q_ASSERT(!type); QDeclarativeEnginePrivate *ep = QDeclarativeEnginePrivate::get(engine); - ep->objectClass->setProperty(((TypeNameData *)o)->object, n, v, context()); + ep->objectClass->setProperty(object, n, v, context()); } QT_END_NAMESPACE |