Mercurial > projects > qtd
diff generator/typesystem_gui.xml @ 22:49d696a4e5f3
QVariant to QPixmap conversion
author | eldar |
---|---|
date | Fri, 15 May 2009 02:44:15 +0000 |
parents | 5015aede8edd |
children | cf8a415f3f32 |
line wrap: on
line diff
--- a/generator/typesystem_gui.xml Fri May 15 02:09:27 2009 +0000 +++ b/generator/typesystem_gui.xml Fri May 15 02:44:15 2009 +0000 @@ -1286,6 +1286,30 @@ <include file-name="QBitmap" location="global"/> <include file-name="QMatrix" location="global"/> </extra-includes> + + <inject-code class="java"> + public this(QVariant arg__1) { + void* __qt_return_value = qtd_QPixmap_QPixmap_QPixmap(cast(void*) this, arg__1 is null ? null : arg__1.nativeId); + super(__qt_return_value); + } + </inject-code> + <inject-code class="java-free"> +private extern (C) void* qtd_QPixmap_QPixmap_QVariant(void *d_ptr, + void* arg__1); + </inject-code> + <inject-code class="native"> +// QPixmap from QVariant +extern "C" DLL_PUBLIC void* qtd_QPixmap_QPixmap_QVariant +(void *d_ptr, + void* arg__1) +{ + const QVariant& __qt_arg__1 = (const QVariant& ) *(QVariant *)arg__1; + QPixmap __qt_casted = qvariant_cast<QPixmap>(__qt_arg__1); + QPixmap_QtDShell *__qt_this = new QPixmap_QtDShell(d_ptr, (const QPixmap& )__qt_casted); + return (void *) __qt_this; +} + </inject-code> + <modify-function signature="save(QIODevice *, const char *, int) const"> <access modifier="private"/> <rename to="private_save"/>