Mercurial > projects > qtd
comparison generator/typesystem_core-java.java @ 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 | e67ce7c21758 |
children |
comparison
equal
deleted
inserted
replaced
404:b64ca517a6b7 | 405:9d6e4703a458 |
---|---|
143 | 143 |
144 static void connect(QObject sender, string signal, QObject receiver, string method, int type = 0) | 144 static void connect(QObject sender, string signal, QObject receiver, string method, int type = 0) |
145 { | 145 { |
146 QMetaObject.connectImpl(sender, signal, receiver, method, type); | 146 QMetaObject.connectImpl(sender, signal, receiver, method, type); |
147 } | 147 } |
148 | |
149 public final QVariant property(string name) { | |
150 return property(name is null? null : toStringz(name)); | |
151 } | |
152 | |
153 public final bool setProperty(string name, QVariant value) { | |
154 return setProperty(name is null? null : toStringz(name), value); | |
155 } | |
148 }// class | 156 }// class |
149 | 157 |
150 abstract class QAbstractItemModel___ extends QAbstractItemModel { | 158 abstract class QAbstractItemModel___ extends QAbstractItemModel { |
151 /* private native boolean setData_native(long id, int row, int col, Object value, int role); | 159 /* private native boolean setData_native(long id, int row, int col, Object value, int role); |
152 | 160 |