mirror of
https://github.com/mappu/miqt.git
synced 2025-04-02 03:40:23 +00:00
Add QVariant__Color support
Add QVariant__Color support
This commit is contained in:
parent
ee156b8e7a
commit
179c4c9c30
@ -33,6 +33,7 @@
|
||||
#include <QUuid>
|
||||
#include <QVariant>
|
||||
#include <QVariantConstPointer>
|
||||
#include <QColor>
|
||||
#include <qvariant.h>
|
||||
#include "gen_qvariant.h"
|
||||
|
||||
@ -233,6 +234,10 @@ QVariant* QVariant_new42(QMetaType* typeVal, const void* copyVal) {
|
||||
return new QVariant(*typeVal, copyVal);
|
||||
}
|
||||
|
||||
QVariant* QVariant_new4099(QColor* color) {
|
||||
return new QVariant(*color);
|
||||
}
|
||||
|
||||
void QVariant_OperatorAssign(QVariant* self, QVariant* other) {
|
||||
self->operator=(*other);
|
||||
}
|
||||
|
@ -504,6 +504,14 @@ func NewQVariant42(typeVal QMetaType, copyVal unsafe.Pointer) *QVariant {
|
||||
return ret
|
||||
}
|
||||
|
||||
// NewQVariant4099 constructs a new QVariant object.
|
||||
func NewQVariant4099(color *QColor) *QVariant {
|
||||
|
||||
ret := newQVariant(C.QVariant_new4099(color.cPointer()))
|
||||
ret.isSubclass = true
|
||||
return ret
|
||||
}
|
||||
|
||||
func (this *QVariant) OperatorAssign(other *QVariant) {
|
||||
C.QVariant_OperatorAssign(this.h, other.cPointer())
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ class QUrl;
|
||||
class QUuid;
|
||||
class QVariant;
|
||||
class QVariantConstPointer;
|
||||
class QColor;
|
||||
#else
|
||||
typedef struct QBitArray QBitArray;
|
||||
typedef struct QChar QChar;
|
||||
@ -74,6 +75,7 @@ typedef struct QUrl QUrl;
|
||||
typedef struct QUuid QUuid;
|
||||
typedef struct QVariant QVariant;
|
||||
typedef struct QVariantConstPointer QVariantConstPointer;
|
||||
typedef struct QColor QColor;
|
||||
#endif
|
||||
|
||||
QVariant* QVariant_new();
|
||||
@ -118,6 +120,7 @@ QVariant* QVariant_new39(QModelIndex* modelIndex);
|
||||
QVariant* QVariant_new40(QPersistentModelIndex* modelIndex);
|
||||
QVariant* QVariant_new41(int typeVal);
|
||||
QVariant* QVariant_new42(QMetaType* typeVal, const void* copyVal);
|
||||
QVariant* QVariant_new4099(QColor* color);
|
||||
void QVariant_OperatorAssign(QVariant* self, QVariant* other);
|
||||
void QVariant_Swap(QVariant* self, QVariant* other);
|
||||
int QVariant_UserType(const QVariant* self);
|
||||
|
Loading…
x
Reference in New Issue
Block a user