Mercurial > projects > qtd
changeset 405:9d6e4703a458
Make QObject::property()/setProperty() accessible from D.
It is specified to be private in the type system back from QtJambi because the functions take a char pointer instead of a QString, but the conversion functions were missing so far.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Thu, 17 Mar 2011 23:09:43 +0100 |
parents | b64ca517a6b7 |
children | eb959324f82a |
files | generator/typesystem_core-java.java |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/generator/typesystem_core-java.java Thu Mar 17 21:49:27 2011 +0100 +++ b/generator/typesystem_core-java.java Thu Mar 17 23:09:43 2011 +0100 @@ -145,6 +145,14 @@ { QMetaObject.connectImpl(sender, signal, receiver, method, type); } + + public final QVariant property(string name) { + return property(name is null? null : toStringz(name)); + } + + public final bool setProperty(string name, QVariant value) { + return setProperty(name is null? null : toStringz(name), value); + } }// class abstract class QAbstractItemModel___ extends QAbstractItemModel {