Mercurial > projects > qtd
diff qt/d2/qt/core/QVariant.d @ 295:463563fc9e17 signals
more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
author | eldar |
---|---|
date | Sun, 22 Nov 2009 11:01:19 +0000 |
parents | 34a37904ff77 |
children | adae77fdc1ea |
line wrap: on
line diff
--- a/qt/d2/qt/core/QVariant.d Fri Nov 13 20:42:51 2009 +0000 +++ b/qt/d2/qt/core/QVariant.d Sun Nov 22 11:01:19 2009 +0000 @@ -612,11 +612,34 @@ protected override void __deleteNative() { qtd_QVariant_destructor(__nativeId); } + + public alias void __isValueType; + public alias void __isQtType_QVariant; + + struct QTypeInfo + { + enum bool isComplex = true; + enum bool isStatic = false; + enum bool isLarge = true; + enum bool isPointer = false; + enum bool isDummy = false; + } + + static void* __constructNativeCopy(const void* orig) { + return qtd_QVariant_QVariant_QVariant(cast(void*)orig); + } + + static void* __constructPlacedNativeCopy(const void* orig, void* place) { + return qtd_QVariant_placed_copy(orig, place); + } // Injected code in class } extern (C) void qtd_QVariant_destructor(void *ptr); +private extern(C) void* qtd_QVariant_placed_copy(const void* orig, void* place); + +extern (C) void qtd_QVariant_call_destructor(void *ptr); // C wrappers private extern(C) void* qtd_QVariant_QVariant();