mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
3259 lines
112 KiB
C++
3259 lines
112 KiB
C++
#include <QAbstractItemModel>
|
|
#include <QBrush>
|
|
#include <QByteArray>
|
|
#include <QChildEvent>
|
|
#include <QDataStream>
|
|
#include <QEvent>
|
|
#include <QFont>
|
|
#include <QIcon>
|
|
#include <QList>
|
|
#include <QMap>
|
|
#include <QMetaMethod>
|
|
#include <QMetaObject>
|
|
#include <QMimeData>
|
|
#include <QModelIndex>
|
|
#include <QModelRoleDataSpan>
|
|
#include <QObject>
|
|
#include <QSize>
|
|
#include <QStandardItem>
|
|
#include <QStandardItemModel>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <QTimerEvent>
|
|
#include <QVariant>
|
|
#include <qstandarditemmodel.h>
|
|
#include "gen_qstandarditemmodel.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
QVariant* miqt_exec_callback_QStandardItem_data(const QStandardItem*, intptr_t, int);
|
|
void miqt_exec_callback_QStandardItem_multiData(const QStandardItem*, intptr_t, QModelRoleDataSpan*);
|
|
void miqt_exec_callback_QStandardItem_setData(QStandardItem*, intptr_t, QVariant*, int);
|
|
QStandardItem* miqt_exec_callback_QStandardItem_clone(const QStandardItem*, intptr_t);
|
|
int miqt_exec_callback_QStandardItem_type(const QStandardItem*, intptr_t);
|
|
void miqt_exec_callback_QStandardItem_read(QStandardItem*, intptr_t, QDataStream*);
|
|
void miqt_exec_callback_QStandardItem_write(const QStandardItem*, intptr_t, QDataStream*);
|
|
bool miqt_exec_callback_QStandardItem_operatorLesser(const QStandardItem*, intptr_t, QStandardItem*);
|
|
void miqt_exec_callback_QStandardItemModel_itemChanged(intptr_t, QStandardItem*);
|
|
struct miqt_map /* of int to struct miqt_string */ miqt_exec_callback_QStandardItemModel_roleNames(const QStandardItemModel*, intptr_t);
|
|
QModelIndex* miqt_exec_callback_QStandardItemModel_index(const QStandardItemModel*, intptr_t, int, int, QModelIndex*);
|
|
QModelIndex* miqt_exec_callback_QStandardItemModel_parent(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
int miqt_exec_callback_QStandardItemModel_rowCount(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
int miqt_exec_callback_QStandardItemModel_columnCount(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_hasChildren(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
QVariant* miqt_exec_callback_QStandardItemModel_data(const QStandardItemModel*, intptr_t, QModelIndex*, int);
|
|
void miqt_exec_callback_QStandardItemModel_multiData(const QStandardItemModel*, intptr_t, QModelIndex*, QModelRoleDataSpan*);
|
|
bool miqt_exec_callback_QStandardItemModel_setData(QStandardItemModel*, intptr_t, QModelIndex*, QVariant*, int);
|
|
bool miqt_exec_callback_QStandardItemModel_clearItemData(QStandardItemModel*, intptr_t, QModelIndex*);
|
|
QVariant* miqt_exec_callback_QStandardItemModel_headerData(const QStandardItemModel*, intptr_t, int, int, int);
|
|
bool miqt_exec_callback_QStandardItemModel_setHeaderData(QStandardItemModel*, intptr_t, int, int, QVariant*, int);
|
|
bool miqt_exec_callback_QStandardItemModel_insertRows(QStandardItemModel*, intptr_t, int, int, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_insertColumns(QStandardItemModel*, intptr_t, int, int, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_removeRows(QStandardItemModel*, intptr_t, int, int, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_removeColumns(QStandardItemModel*, intptr_t, int, int, QModelIndex*);
|
|
int miqt_exec_callback_QStandardItemModel_flags(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
int miqt_exec_callback_QStandardItemModel_supportedDropActions(const QStandardItemModel*, intptr_t);
|
|
struct miqt_map /* of int to QVariant* */ miqt_exec_callback_QStandardItemModel_itemData(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_setItemData(QStandardItemModel*, intptr_t, QModelIndex*, struct miqt_map /* of int to QVariant* */ );
|
|
void miqt_exec_callback_QStandardItemModel_sort(QStandardItemModel*, intptr_t, int, int);
|
|
struct miqt_array /* of struct miqt_string */ miqt_exec_callback_QStandardItemModel_mimeTypes(const QStandardItemModel*, intptr_t);
|
|
QMimeData* miqt_exec_callback_QStandardItemModel_mimeData(const QStandardItemModel*, intptr_t, struct miqt_array /* of QModelIndex* */ );
|
|
bool miqt_exec_callback_QStandardItemModel_dropMimeData(QStandardItemModel*, intptr_t, QMimeData*, int, int, int, QModelIndex*);
|
|
QModelIndex* miqt_exec_callback_QStandardItemModel_sibling(const QStandardItemModel*, intptr_t, int, int, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_canDropMimeData(const QStandardItemModel*, intptr_t, QMimeData*, int, int, int, QModelIndex*);
|
|
int miqt_exec_callback_QStandardItemModel_supportedDragActions(const QStandardItemModel*, intptr_t);
|
|
bool miqt_exec_callback_QStandardItemModel_moveRows(QStandardItemModel*, intptr_t, QModelIndex*, int, int, QModelIndex*, int);
|
|
bool miqt_exec_callback_QStandardItemModel_moveColumns(QStandardItemModel*, intptr_t, QModelIndex*, int, int, QModelIndex*, int);
|
|
void miqt_exec_callback_QStandardItemModel_fetchMore(QStandardItemModel*, intptr_t, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_canFetchMore(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
QModelIndex* miqt_exec_callback_QStandardItemModel_buddy(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
struct miqt_array /* of QModelIndex* */ miqt_exec_callback_QStandardItemModel_match(const QStandardItemModel*, intptr_t, QModelIndex*, int, QVariant*, int, int);
|
|
QSize* miqt_exec_callback_QStandardItemModel_span(const QStandardItemModel*, intptr_t, QModelIndex*);
|
|
bool miqt_exec_callback_QStandardItemModel_submit(QStandardItemModel*, intptr_t);
|
|
void miqt_exec_callback_QStandardItemModel_revert(QStandardItemModel*, intptr_t);
|
|
void miqt_exec_callback_QStandardItemModel_resetInternalData(QStandardItemModel*, intptr_t);
|
|
bool miqt_exec_callback_QStandardItemModel_event(QStandardItemModel*, intptr_t, QEvent*);
|
|
bool miqt_exec_callback_QStandardItemModel_eventFilter(QStandardItemModel*, intptr_t, QObject*, QEvent*);
|
|
void miqt_exec_callback_QStandardItemModel_timerEvent(QStandardItemModel*, intptr_t, QTimerEvent*);
|
|
void miqt_exec_callback_QStandardItemModel_childEvent(QStandardItemModel*, intptr_t, QChildEvent*);
|
|
void miqt_exec_callback_QStandardItemModel_customEvent(QStandardItemModel*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QStandardItemModel_connectNotify(QStandardItemModel*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QStandardItemModel_disconnectNotify(QStandardItemModel*, intptr_t, QMetaMethod*);
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
class MiqtVirtualQStandardItem final : public QStandardItem {
|
|
public:
|
|
|
|
MiqtVirtualQStandardItem(): QStandardItem() {};
|
|
MiqtVirtualQStandardItem(const QString& text): QStandardItem(text) {};
|
|
MiqtVirtualQStandardItem(const QIcon& icon, const QString& text): QStandardItem(icon, text) {};
|
|
MiqtVirtualQStandardItem(int rows): QStandardItem(rows) {};
|
|
MiqtVirtualQStandardItem(int rows, int columns): QStandardItem(rows, columns) {};
|
|
|
|
virtual ~MiqtVirtualQStandardItem() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__data = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QVariant data(int role) const override {
|
|
if (handle__data == 0) {
|
|
return QStandardItem::data(role);
|
|
}
|
|
|
|
int sigval1 = role;
|
|
|
|
QVariant* callback_return_value = miqt_exec_callback_QStandardItem_data(this, handle__data, sigval1);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QVariant* virtualbase_data(int role) const {
|
|
|
|
return new QVariant(QStandardItem::data(static_cast<int>(role)));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__multiData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void multiData(QModelRoleDataSpan roleDataSpan) const override {
|
|
if (handle__multiData == 0) {
|
|
QStandardItem::multiData(roleDataSpan);
|
|
return;
|
|
}
|
|
|
|
QModelRoleDataSpan* sigval1 = new QModelRoleDataSpan(roleDataSpan);
|
|
|
|
miqt_exec_callback_QStandardItem_multiData(this, handle__multiData, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_multiData(QModelRoleDataSpan* roleDataSpan) const {
|
|
|
|
QStandardItem::multiData(*roleDataSpan);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void setData(const QVariant& value, int role) override {
|
|
if (handle__setData == 0) {
|
|
QStandardItem::setData(value, role);
|
|
return;
|
|
}
|
|
|
|
const QVariant& value_ret = value;
|
|
// Cast returned reference into pointer
|
|
QVariant* sigval1 = const_cast<QVariant*>(&value_ret);
|
|
int sigval2 = role;
|
|
|
|
miqt_exec_callback_QStandardItem_setData(this, handle__setData, sigval1, sigval2);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_setData(QVariant* value, int role) {
|
|
|
|
QStandardItem::setData(*value, static_cast<int>(role));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__clone = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QStandardItem* clone() const override {
|
|
if (handle__clone == 0) {
|
|
return QStandardItem::clone();
|
|
}
|
|
|
|
|
|
QStandardItem* callback_return_value = miqt_exec_callback_QStandardItem_clone(this, handle__clone);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QStandardItem* virtualbase_clone() const {
|
|
|
|
return QStandardItem::clone();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__type = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int type() const override {
|
|
if (handle__type == 0) {
|
|
return QStandardItem::type();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QStandardItem_type(this, handle__type);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_type() const {
|
|
|
|
return QStandardItem::type();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__read = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void read(QDataStream& in) override {
|
|
if (handle__read == 0) {
|
|
QStandardItem::read(in);
|
|
return;
|
|
}
|
|
|
|
QDataStream& in_ret = in;
|
|
// Cast returned reference into pointer
|
|
QDataStream* sigval1 = &in_ret;
|
|
|
|
miqt_exec_callback_QStandardItem_read(this, handle__read, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_read(QDataStream* in) {
|
|
|
|
QStandardItem::read(*in);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__write = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void write(QDataStream& out) const override {
|
|
if (handle__write == 0) {
|
|
QStandardItem::write(out);
|
|
return;
|
|
}
|
|
|
|
QDataStream& out_ret = out;
|
|
// Cast returned reference into pointer
|
|
QDataStream* sigval1 = &out_ret;
|
|
|
|
miqt_exec_callback_QStandardItem_write(this, handle__write, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_write(QDataStream* out) const {
|
|
|
|
QStandardItem::write(*out);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__operatorLesser = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool operator<(const QStandardItem& other) const override {
|
|
if (handle__operatorLesser == 0) {
|
|
return QStandardItem::operator<(other);
|
|
}
|
|
|
|
const QStandardItem& other_ret = other;
|
|
// Cast returned reference into pointer
|
|
QStandardItem* sigval1 = const_cast<QStandardItem*>(&other_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItem_operatorLesser(this, handle__operatorLesser, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_operatorLesser(QStandardItem* other) const {
|
|
|
|
return QStandardItem::operator<(*other);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QStandardItem* QStandardItem_new() {
|
|
return new MiqtVirtualQStandardItem();
|
|
}
|
|
|
|
QStandardItem* QStandardItem_new2(struct miqt_string text) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
return new MiqtVirtualQStandardItem(text_QString);
|
|
}
|
|
|
|
QStandardItem* QStandardItem_new3(QIcon* icon, struct miqt_string text) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
return new MiqtVirtualQStandardItem(*icon, text_QString);
|
|
}
|
|
|
|
QStandardItem* QStandardItem_new4(int rows) {
|
|
return new MiqtVirtualQStandardItem(static_cast<int>(rows));
|
|
}
|
|
|
|
QStandardItem* QStandardItem_new5(int rows, int columns) {
|
|
return new MiqtVirtualQStandardItem(static_cast<int>(rows), static_cast<int>(columns));
|
|
}
|
|
|
|
QVariant* QStandardItem_data(const QStandardItem* self, int role) {
|
|
return new QVariant(self->data(static_cast<int>(role)));
|
|
}
|
|
|
|
void QStandardItem_multiData(const QStandardItem* self, QModelRoleDataSpan* roleDataSpan) {
|
|
self->multiData(*roleDataSpan);
|
|
}
|
|
|
|
void QStandardItem_setData(QStandardItem* self, QVariant* value, int role) {
|
|
self->setData(*value, static_cast<int>(role));
|
|
}
|
|
|
|
void QStandardItem_clearData(QStandardItem* self) {
|
|
self->clearData();
|
|
}
|
|
|
|
struct miqt_string QStandardItem_text(const QStandardItem* self) {
|
|
QString _ret = self->text();
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItem_setText(QStandardItem* self, struct miqt_string text) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
self->setText(text_QString);
|
|
}
|
|
|
|
QIcon* QStandardItem_icon(const QStandardItem* self) {
|
|
return new QIcon(self->icon());
|
|
}
|
|
|
|
void QStandardItem_setIcon(QStandardItem* self, QIcon* icon) {
|
|
self->setIcon(*icon);
|
|
}
|
|
|
|
struct miqt_string QStandardItem_toolTip(const QStandardItem* self) {
|
|
QString _ret = self->toolTip();
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItem_setToolTip(QStandardItem* self, struct miqt_string toolTip) {
|
|
QString toolTip_QString = QString::fromUtf8(toolTip.data, toolTip.len);
|
|
self->setToolTip(toolTip_QString);
|
|
}
|
|
|
|
struct miqt_string QStandardItem_statusTip(const QStandardItem* self) {
|
|
QString _ret = self->statusTip();
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItem_setStatusTip(QStandardItem* self, struct miqt_string statusTip) {
|
|
QString statusTip_QString = QString::fromUtf8(statusTip.data, statusTip.len);
|
|
self->setStatusTip(statusTip_QString);
|
|
}
|
|
|
|
struct miqt_string QStandardItem_whatsThis(const QStandardItem* self) {
|
|
QString _ret = self->whatsThis();
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItem_setWhatsThis(QStandardItem* self, struct miqt_string whatsThis) {
|
|
QString whatsThis_QString = QString::fromUtf8(whatsThis.data, whatsThis.len);
|
|
self->setWhatsThis(whatsThis_QString);
|
|
}
|
|
|
|
QSize* QStandardItem_sizeHint(const QStandardItem* self) {
|
|
return new QSize(self->sizeHint());
|
|
}
|
|
|
|
void QStandardItem_setSizeHint(QStandardItem* self, QSize* sizeHint) {
|
|
self->setSizeHint(*sizeHint);
|
|
}
|
|
|
|
QFont* QStandardItem_font(const QStandardItem* self) {
|
|
return new QFont(self->font());
|
|
}
|
|
|
|
void QStandardItem_setFont(QStandardItem* self, QFont* font) {
|
|
self->setFont(*font);
|
|
}
|
|
|
|
int QStandardItem_textAlignment(const QStandardItem* self) {
|
|
Qt::Alignment _ret = self->textAlignment();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QStandardItem_setTextAlignment(QStandardItem* self, int textAlignment) {
|
|
self->setTextAlignment(static_cast<Qt::Alignment>(textAlignment));
|
|
}
|
|
|
|
QBrush* QStandardItem_background(const QStandardItem* self) {
|
|
return new QBrush(self->background());
|
|
}
|
|
|
|
void QStandardItem_setBackground(QStandardItem* self, QBrush* brush) {
|
|
self->setBackground(*brush);
|
|
}
|
|
|
|
QBrush* QStandardItem_foreground(const QStandardItem* self) {
|
|
return new QBrush(self->foreground());
|
|
}
|
|
|
|
void QStandardItem_setForeground(QStandardItem* self, QBrush* brush) {
|
|
self->setForeground(*brush);
|
|
}
|
|
|
|
int QStandardItem_checkState(const QStandardItem* self) {
|
|
Qt::CheckState _ret = self->checkState();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QStandardItem_setCheckState(QStandardItem* self, int checkState) {
|
|
self->setCheckState(static_cast<Qt::CheckState>(checkState));
|
|
}
|
|
|
|
struct miqt_string QStandardItem_accessibleText(const QStandardItem* self) {
|
|
QString _ret = self->accessibleText();
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItem_setAccessibleText(QStandardItem* self, struct miqt_string accessibleText) {
|
|
QString accessibleText_QString = QString::fromUtf8(accessibleText.data, accessibleText.len);
|
|
self->setAccessibleText(accessibleText_QString);
|
|
}
|
|
|
|
struct miqt_string QStandardItem_accessibleDescription(const QStandardItem* self) {
|
|
QString _ret = self->accessibleDescription();
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItem_setAccessibleDescription(QStandardItem* self, struct miqt_string accessibleDescription) {
|
|
QString accessibleDescription_QString = QString::fromUtf8(accessibleDescription.data, accessibleDescription.len);
|
|
self->setAccessibleDescription(accessibleDescription_QString);
|
|
}
|
|
|
|
int QStandardItem_flags(const QStandardItem* self) {
|
|
Qt::ItemFlags _ret = self->flags();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QStandardItem_setFlags(QStandardItem* self, int flags) {
|
|
self->setFlags(static_cast<Qt::ItemFlags>(flags));
|
|
}
|
|
|
|
bool QStandardItem_isEnabled(const QStandardItem* self) {
|
|
return self->isEnabled();
|
|
}
|
|
|
|
void QStandardItem_setEnabled(QStandardItem* self, bool enabled) {
|
|
self->setEnabled(enabled);
|
|
}
|
|
|
|
bool QStandardItem_isEditable(const QStandardItem* self) {
|
|
return self->isEditable();
|
|
}
|
|
|
|
void QStandardItem_setEditable(QStandardItem* self, bool editable) {
|
|
self->setEditable(editable);
|
|
}
|
|
|
|
bool QStandardItem_isSelectable(const QStandardItem* self) {
|
|
return self->isSelectable();
|
|
}
|
|
|
|
void QStandardItem_setSelectable(QStandardItem* self, bool selectable) {
|
|
self->setSelectable(selectable);
|
|
}
|
|
|
|
bool QStandardItem_isCheckable(const QStandardItem* self) {
|
|
return self->isCheckable();
|
|
}
|
|
|
|
void QStandardItem_setCheckable(QStandardItem* self, bool checkable) {
|
|
self->setCheckable(checkable);
|
|
}
|
|
|
|
bool QStandardItem_isAutoTristate(const QStandardItem* self) {
|
|
return self->isAutoTristate();
|
|
}
|
|
|
|
void QStandardItem_setAutoTristate(QStandardItem* self, bool tristate) {
|
|
self->setAutoTristate(tristate);
|
|
}
|
|
|
|
bool QStandardItem_isUserTristate(const QStandardItem* self) {
|
|
return self->isUserTristate();
|
|
}
|
|
|
|
void QStandardItem_setUserTristate(QStandardItem* self, bool tristate) {
|
|
self->setUserTristate(tristate);
|
|
}
|
|
|
|
bool QStandardItem_isDragEnabled(const QStandardItem* self) {
|
|
return self->isDragEnabled();
|
|
}
|
|
|
|
void QStandardItem_setDragEnabled(QStandardItem* self, bool dragEnabled) {
|
|
self->setDragEnabled(dragEnabled);
|
|
}
|
|
|
|
bool QStandardItem_isDropEnabled(const QStandardItem* self) {
|
|
return self->isDropEnabled();
|
|
}
|
|
|
|
void QStandardItem_setDropEnabled(QStandardItem* self, bool dropEnabled) {
|
|
self->setDropEnabled(dropEnabled);
|
|
}
|
|
|
|
QStandardItem* QStandardItem_parent(const QStandardItem* self) {
|
|
return self->parent();
|
|
}
|
|
|
|
int QStandardItem_row(const QStandardItem* self) {
|
|
return self->row();
|
|
}
|
|
|
|
int QStandardItem_column(const QStandardItem* self) {
|
|
return self->column();
|
|
}
|
|
|
|
QModelIndex* QStandardItem_index(const QStandardItem* self) {
|
|
return new QModelIndex(self->index());
|
|
}
|
|
|
|
QStandardItemModel* QStandardItem_model(const QStandardItem* self) {
|
|
return self->model();
|
|
}
|
|
|
|
int QStandardItem_rowCount(const QStandardItem* self) {
|
|
return self->rowCount();
|
|
}
|
|
|
|
void QStandardItem_setRowCount(QStandardItem* self, int rows) {
|
|
self->setRowCount(static_cast<int>(rows));
|
|
}
|
|
|
|
int QStandardItem_columnCount(const QStandardItem* self) {
|
|
return self->columnCount();
|
|
}
|
|
|
|
void QStandardItem_setColumnCount(QStandardItem* self, int columns) {
|
|
self->setColumnCount(static_cast<int>(columns));
|
|
}
|
|
|
|
bool QStandardItem_hasChildren(const QStandardItem* self) {
|
|
return self->hasChildren();
|
|
}
|
|
|
|
QStandardItem* QStandardItem_child(const QStandardItem* self, int row) {
|
|
return self->child(static_cast<int>(row));
|
|
}
|
|
|
|
void QStandardItem_setChild(QStandardItem* self, int row, int column, QStandardItem* item) {
|
|
self->setChild(static_cast<int>(row), static_cast<int>(column), item);
|
|
}
|
|
|
|
void QStandardItem_setChild2(QStandardItem* self, int row, QStandardItem* item) {
|
|
self->setChild(static_cast<int>(row), item);
|
|
}
|
|
|
|
void QStandardItem_insertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->insertRow(static_cast<int>(row), items_QList);
|
|
}
|
|
|
|
void QStandardItem_insertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->insertColumn(static_cast<int>(column), items_QList);
|
|
}
|
|
|
|
void QStandardItem_insertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->insertRows(static_cast<int>(row), items_QList);
|
|
}
|
|
|
|
void QStandardItem_insertRows2(QStandardItem* self, int row, int count) {
|
|
self->insertRows(static_cast<int>(row), static_cast<int>(count));
|
|
}
|
|
|
|
void QStandardItem_insertColumns(QStandardItem* self, int column, int count) {
|
|
self->insertColumns(static_cast<int>(column), static_cast<int>(count));
|
|
}
|
|
|
|
void QStandardItem_removeRow(QStandardItem* self, int row) {
|
|
self->removeRow(static_cast<int>(row));
|
|
}
|
|
|
|
void QStandardItem_removeColumn(QStandardItem* self, int column) {
|
|
self->removeColumn(static_cast<int>(column));
|
|
}
|
|
|
|
void QStandardItem_removeRows(QStandardItem* self, int row, int count) {
|
|
self->removeRows(static_cast<int>(row), static_cast<int>(count));
|
|
}
|
|
|
|
void QStandardItem_removeColumns(QStandardItem* self, int column, int count) {
|
|
self->removeColumns(static_cast<int>(column), static_cast<int>(count));
|
|
}
|
|
|
|
void QStandardItem_appendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->appendRow(items_QList);
|
|
}
|
|
|
|
void QStandardItem_appendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->appendRows(items_QList);
|
|
}
|
|
|
|
void QStandardItem_appendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->appendColumn(items_QList);
|
|
}
|
|
|
|
void QStandardItem_insertRow2(QStandardItem* self, int row, QStandardItem* item) {
|
|
self->insertRow(static_cast<int>(row), item);
|
|
}
|
|
|
|
void QStandardItem_appendRowWithItem(QStandardItem* self, QStandardItem* item) {
|
|
self->appendRow(item);
|
|
}
|
|
|
|
QStandardItem* QStandardItem_takeChild(QStandardItem* self, int row) {
|
|
return self->takeChild(static_cast<int>(row));
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItem_takeRow(QStandardItem* self, int row) {
|
|
QList<QStandardItem *> _ret = self->takeRow(static_cast<int>(row));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItem_takeColumn(QStandardItem* self, int column) {
|
|
QList<QStandardItem *> _ret = self->takeColumn(static_cast<int>(column));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
void QStandardItem_sortChildren(QStandardItem* self, int column) {
|
|
self->sortChildren(static_cast<int>(column));
|
|
}
|
|
|
|
QStandardItem* QStandardItem_clone(const QStandardItem* self) {
|
|
return self->clone();
|
|
}
|
|
|
|
int QStandardItem_type(const QStandardItem* self) {
|
|
return self->type();
|
|
}
|
|
|
|
void QStandardItem_read(QStandardItem* self, QDataStream* in) {
|
|
self->read(*in);
|
|
}
|
|
|
|
void QStandardItem_write(const QStandardItem* self, QDataStream* out) {
|
|
self->write(*out);
|
|
}
|
|
|
|
bool QStandardItem_operatorLesser(const QStandardItem* self, QStandardItem* other) {
|
|
return (*self < *other);
|
|
}
|
|
|
|
QStandardItem* QStandardItem_child2(const QStandardItem* self, int row, int column) {
|
|
return self->child(static_cast<int>(row), static_cast<int>(column));
|
|
}
|
|
|
|
QStandardItem* QStandardItem_takeChild2(QStandardItem* self, int row, int column) {
|
|
return self->takeChild(static_cast<int>(row), static_cast<int>(column));
|
|
}
|
|
|
|
void QStandardItem_sortChildren2(QStandardItem* self, int column, int order) {
|
|
self->sortChildren(static_cast<int>(column), static_cast<Qt::SortOrder>(order));
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_data(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__data = slot;
|
|
return true;
|
|
}
|
|
|
|
QVariant* QStandardItem_virtualbase_data(const void* self, int role) {
|
|
return ( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_data(role);
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_multiData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__multiData = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItem_virtualbase_multiData(const void* self, QModelRoleDataSpan* roleDataSpan) {
|
|
( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_multiData(roleDataSpan);
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_setData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setData = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItem_virtualbase_setData(void* self, QVariant* value, int role) {
|
|
( (MiqtVirtualQStandardItem*)(self) )->virtualbase_setData(value, role);
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_clone(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__clone = slot;
|
|
return true;
|
|
}
|
|
|
|
QStandardItem* QStandardItem_virtualbase_clone(const void* self) {
|
|
return ( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_clone();
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_type(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__type = slot;
|
|
return true;
|
|
}
|
|
|
|
int QStandardItem_virtualbase_type(const void* self) {
|
|
return ( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_type();
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_read(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__read = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItem_virtualbase_read(void* self, QDataStream* in) {
|
|
( (MiqtVirtualQStandardItem*)(self) )->virtualbase_read(in);
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_write(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__write = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItem_virtualbase_write(const void* self, QDataStream* out) {
|
|
( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_write(out);
|
|
}
|
|
|
|
bool QStandardItem_override_virtual_operatorLesser(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItem* self_cast = dynamic_cast<MiqtVirtualQStandardItem*>( (QStandardItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__operatorLesser = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItem_virtualbase_operatorLesser(const void* self, QStandardItem* other) {
|
|
return ( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_operatorLesser(other);
|
|
}
|
|
|
|
void QStandardItem_delete(QStandardItem* self) {
|
|
delete self;
|
|
}
|
|
|
|
class MiqtVirtualQStandardItemModel final : public QStandardItemModel {
|
|
public:
|
|
|
|
MiqtVirtualQStandardItemModel(): QStandardItemModel() {};
|
|
MiqtVirtualQStandardItemModel(int rows, int columns): QStandardItemModel(rows, columns) {};
|
|
MiqtVirtualQStandardItemModel(QObject* parent): QStandardItemModel(parent) {};
|
|
MiqtVirtualQStandardItemModel(int rows, int columns, QObject* parent): QStandardItemModel(rows, columns, parent) {};
|
|
|
|
virtual ~MiqtVirtualQStandardItemModel() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__roleNames = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QHash<int, QByteArray> roleNames() const override {
|
|
if (handle__roleNames == 0) {
|
|
return QStandardItemModel::roleNames();
|
|
}
|
|
|
|
|
|
struct miqt_map /* of int to struct miqt_string */ callback_return_value = miqt_exec_callback_QStandardItemModel_roleNames(this, handle__roleNames);
|
|
QHash<int, QByteArray> callback_return_value_QMap;
|
|
callback_return_value_QMap.reserve(callback_return_value.len);
|
|
int* callback_return_value_karr = static_cast<int*>(callback_return_value.keys);
|
|
struct miqt_string* callback_return_value_varr = static_cast<struct miqt_string*>(callback_return_value.values);
|
|
for(size_t i = 0; i < callback_return_value.len; ++i) {
|
|
QByteArray callback_return_value_varr_i_QByteArray(callback_return_value_varr[i].data, callback_return_value_varr[i].len);
|
|
callback_return_value_QMap[static_cast<int>(callback_return_value_karr[i])] = callback_return_value_varr_i_QByteArray;
|
|
}
|
|
|
|
return callback_return_value_QMap;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
struct miqt_map /* of int to struct miqt_string */ virtualbase_roleNames() const {
|
|
|
|
QHash<int, QByteArray> _ret = QStandardItemModel::roleNames();
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
int* _karr = static_cast<int*>(malloc(sizeof(int) * _ret.size()));
|
|
struct miqt_string* _varr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.size()));
|
|
int _ctr = 0;
|
|
for (auto _itr = _ret.keyValueBegin(); _itr != _ret.keyValueEnd(); ++_itr) {
|
|
_karr[_ctr] = _itr->first;
|
|
QByteArray _hashval_qb = _itr->second;
|
|
struct miqt_string _hashval_ms;
|
|
_hashval_ms.len = _hashval_qb.length();
|
|
_hashval_ms.data = static_cast<char*>(malloc(_hashval_ms.len));
|
|
memcpy(_hashval_ms.data, _hashval_qb.data(), _hashval_ms.len);
|
|
_varr[_ctr] = _hashval_ms;
|
|
_ctr++;
|
|
}
|
|
struct miqt_map _out;
|
|
_out.len = _ret.size();
|
|
_out.keys = static_cast<void*>(_karr);
|
|
_out.values = static_cast<void*>(_varr);
|
|
return _out;
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__index = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QModelIndex index(int row, int column, const QModelIndex& parent) const override {
|
|
if (handle__index == 0) {
|
|
return QStandardItemModel::index(row, column, parent);
|
|
}
|
|
|
|
int sigval1 = row;
|
|
int sigval2 = column;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval3 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
QModelIndex* callback_return_value = miqt_exec_callback_QStandardItemModel_index(this, handle__index, sigval1, sigval2, sigval3);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QModelIndex* virtualbase_index(int row, int column, QModelIndex* parent) const {
|
|
|
|
return new QModelIndex(QStandardItemModel::index(static_cast<int>(row), static_cast<int>(column), *parent));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__parent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QModelIndex parent(const QModelIndex& child) const override {
|
|
if (handle__parent == 0) {
|
|
return QStandardItemModel::parent(child);
|
|
}
|
|
|
|
const QModelIndex& child_ret = child;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&child_ret);
|
|
|
|
QModelIndex* callback_return_value = miqt_exec_callback_QStandardItemModel_parent(this, handle__parent, sigval1);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QModelIndex* virtualbase_parent(QModelIndex* child) const {
|
|
|
|
return new QModelIndex(QStandardItemModel::parent(*child));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__rowCount = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int rowCount(const QModelIndex& parent) const override {
|
|
if (handle__rowCount == 0) {
|
|
return QStandardItemModel::rowCount(parent);
|
|
}
|
|
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
int callback_return_value = miqt_exec_callback_QStandardItemModel_rowCount(this, handle__rowCount, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_rowCount(QModelIndex* parent) const {
|
|
|
|
return QStandardItemModel::rowCount(*parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__columnCount = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int columnCount(const QModelIndex& parent) const override {
|
|
if (handle__columnCount == 0) {
|
|
return QStandardItemModel::columnCount(parent);
|
|
}
|
|
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
int callback_return_value = miqt_exec_callback_QStandardItemModel_columnCount(this, handle__columnCount, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_columnCount(QModelIndex* parent) const {
|
|
|
|
return QStandardItemModel::columnCount(*parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__hasChildren = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool hasChildren(const QModelIndex& parent) const override {
|
|
if (handle__hasChildren == 0) {
|
|
return QStandardItemModel::hasChildren(parent);
|
|
}
|
|
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_hasChildren(this, handle__hasChildren, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_hasChildren(QModelIndex* parent) const {
|
|
|
|
return QStandardItemModel::hasChildren(*parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__data = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QVariant data(const QModelIndex& index, int role) const override {
|
|
if (handle__data == 0) {
|
|
return QStandardItemModel::data(index, role);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
int sigval2 = role;
|
|
|
|
QVariant* callback_return_value = miqt_exec_callback_QStandardItemModel_data(this, handle__data, sigval1, sigval2);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QVariant* virtualbase_data(QModelIndex* index, int role) const {
|
|
|
|
return new QVariant(QStandardItemModel::data(*index, static_cast<int>(role)));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__multiData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void multiData(const QModelIndex& index, QModelRoleDataSpan roleDataSpan) const override {
|
|
if (handle__multiData == 0) {
|
|
QStandardItemModel::multiData(index, roleDataSpan);
|
|
return;
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
QModelRoleDataSpan* sigval2 = new QModelRoleDataSpan(roleDataSpan);
|
|
|
|
miqt_exec_callback_QStandardItemModel_multiData(this, handle__multiData, sigval1, sigval2);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_multiData(QModelIndex* index, QModelRoleDataSpan* roleDataSpan) const {
|
|
|
|
QStandardItemModel::multiData(*index, *roleDataSpan);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool setData(const QModelIndex& index, const QVariant& value, int role) override {
|
|
if (handle__setData == 0) {
|
|
return QStandardItemModel::setData(index, value, role);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
const QVariant& value_ret = value;
|
|
// Cast returned reference into pointer
|
|
QVariant* sigval2 = const_cast<QVariant*>(&value_ret);
|
|
int sigval3 = role;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_setData(this, handle__setData, sigval1, sigval2, sigval3);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_setData(QModelIndex* index, QVariant* value, int role) {
|
|
|
|
return QStandardItemModel::setData(*index, *value, static_cast<int>(role));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__clearItemData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool clearItemData(const QModelIndex& index) override {
|
|
if (handle__clearItemData == 0) {
|
|
return QStandardItemModel::clearItemData(index);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_clearItemData(this, handle__clearItemData, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_clearItemData(QModelIndex* index) {
|
|
|
|
return QStandardItemModel::clearItemData(*index);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__headerData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override {
|
|
if (handle__headerData == 0) {
|
|
return QStandardItemModel::headerData(section, orientation, role);
|
|
}
|
|
|
|
int sigval1 = section;
|
|
Qt::Orientation orientation_ret = orientation;
|
|
int sigval2 = static_cast<int>(orientation_ret);
|
|
int sigval3 = role;
|
|
|
|
QVariant* callback_return_value = miqt_exec_callback_QStandardItemModel_headerData(this, handle__headerData, sigval1, sigval2, sigval3);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QVariant* virtualbase_headerData(int section, int orientation, int role) const {
|
|
|
|
return new QVariant(QStandardItemModel::headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setHeaderData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) override {
|
|
if (handle__setHeaderData == 0) {
|
|
return QStandardItemModel::setHeaderData(section, orientation, value, role);
|
|
}
|
|
|
|
int sigval1 = section;
|
|
Qt::Orientation orientation_ret = orientation;
|
|
int sigval2 = static_cast<int>(orientation_ret);
|
|
const QVariant& value_ret = value;
|
|
// Cast returned reference into pointer
|
|
QVariant* sigval3 = const_cast<QVariant*>(&value_ret);
|
|
int sigval4 = role;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_setHeaderData(this, handle__setHeaderData, sigval1, sigval2, sigval3, sigval4);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_setHeaderData(int section, int orientation, QVariant* value, int role) {
|
|
|
|
return QStandardItemModel::setHeaderData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), *value, static_cast<int>(role));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__insertRows = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool insertRows(int row, int count, const QModelIndex& parent) override {
|
|
if (handle__insertRows == 0) {
|
|
return QStandardItemModel::insertRows(row, count, parent);
|
|
}
|
|
|
|
int sigval1 = row;
|
|
int sigval2 = count;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval3 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_insertRows(this, handle__insertRows, sigval1, sigval2, sigval3);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_insertRows(int row, int count, QModelIndex* parent) {
|
|
|
|
return QStandardItemModel::insertRows(static_cast<int>(row), static_cast<int>(count), *parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__insertColumns = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool insertColumns(int column, int count, const QModelIndex& parent) override {
|
|
if (handle__insertColumns == 0) {
|
|
return QStandardItemModel::insertColumns(column, count, parent);
|
|
}
|
|
|
|
int sigval1 = column;
|
|
int sigval2 = count;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval3 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_insertColumns(this, handle__insertColumns, sigval1, sigval2, sigval3);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_insertColumns(int column, int count, QModelIndex* parent) {
|
|
|
|
return QStandardItemModel::insertColumns(static_cast<int>(column), static_cast<int>(count), *parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__removeRows = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool removeRows(int row, int count, const QModelIndex& parent) override {
|
|
if (handle__removeRows == 0) {
|
|
return QStandardItemModel::removeRows(row, count, parent);
|
|
}
|
|
|
|
int sigval1 = row;
|
|
int sigval2 = count;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval3 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_removeRows(this, handle__removeRows, sigval1, sigval2, sigval3);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_removeRows(int row, int count, QModelIndex* parent) {
|
|
|
|
return QStandardItemModel::removeRows(static_cast<int>(row), static_cast<int>(count), *parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__removeColumns = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool removeColumns(int column, int count, const QModelIndex& parent) override {
|
|
if (handle__removeColumns == 0) {
|
|
return QStandardItemModel::removeColumns(column, count, parent);
|
|
}
|
|
|
|
int sigval1 = column;
|
|
int sigval2 = count;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval3 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_removeColumns(this, handle__removeColumns, sigval1, sigval2, sigval3);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_removeColumns(int column, int count, QModelIndex* parent) {
|
|
|
|
return QStandardItemModel::removeColumns(static_cast<int>(column), static_cast<int>(count), *parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__flags = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::ItemFlags flags(const QModelIndex& index) const override {
|
|
if (handle__flags == 0) {
|
|
return QStandardItemModel::flags(index);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
|
|
int callback_return_value = miqt_exec_callback_QStandardItemModel_flags(this, handle__flags, sigval1);
|
|
|
|
return static_cast<Qt::ItemFlags>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_flags(QModelIndex* index) const {
|
|
|
|
Qt::ItemFlags _ret = QStandardItemModel::flags(*index);
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__supportedDropActions = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::DropActions supportedDropActions() const override {
|
|
if (handle__supportedDropActions == 0) {
|
|
return QStandardItemModel::supportedDropActions();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QStandardItemModel_supportedDropActions(this, handle__supportedDropActions);
|
|
|
|
return static_cast<Qt::DropActions>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_supportedDropActions() const {
|
|
|
|
Qt::DropActions _ret = QStandardItemModel::supportedDropActions();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__itemData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QMap<int, QVariant> itemData(const QModelIndex& index) const override {
|
|
if (handle__itemData == 0) {
|
|
return QStandardItemModel::itemData(index);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
|
|
struct miqt_map /* of int to QVariant* */ callback_return_value = miqt_exec_callback_QStandardItemModel_itemData(this, handle__itemData, sigval1);
|
|
QMap<int, QVariant> callback_return_value_QMap;
|
|
int* callback_return_value_karr = static_cast<int*>(callback_return_value.keys);
|
|
QVariant** callback_return_value_varr = static_cast<QVariant**>(callback_return_value.values);
|
|
for(size_t i = 0; i < callback_return_value.len; ++i) {
|
|
callback_return_value_QMap[static_cast<int>(callback_return_value_karr[i])] = *(callback_return_value_varr[i]);
|
|
}
|
|
|
|
return callback_return_value_QMap;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
struct miqt_map /* of int to QVariant* */ virtualbase_itemData(QModelIndex* index) const {
|
|
|
|
QMap<int, QVariant> _ret = QStandardItemModel::itemData(*index);
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
int* _karr = static_cast<int*>(malloc(sizeof(int) * _ret.size()));
|
|
QVariant** _varr = static_cast<QVariant**>(malloc(sizeof(QVariant*) * _ret.size()));
|
|
int _ctr = 0;
|
|
for (auto _itr = _ret.keyValueBegin(); _itr != _ret.keyValueEnd(); ++_itr) {
|
|
_karr[_ctr] = _itr->first;
|
|
_varr[_ctr] = new QVariant(_itr->second);
|
|
_ctr++;
|
|
}
|
|
struct miqt_map _out;
|
|
_out.len = _ret.size();
|
|
_out.keys = static_cast<void*>(_karr);
|
|
_out.values = static_cast<void*>(_varr);
|
|
return _out;
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setItemData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool setItemData(const QModelIndex& index, const QMap<int, QVariant>& roles) override {
|
|
if (handle__setItemData == 0) {
|
|
return QStandardItemModel::setItemData(index, roles);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
const QMap<int, QVariant>& roles_ret = roles;
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
int* roles_karr = static_cast<int*>(malloc(sizeof(int) * roles_ret.size()));
|
|
QVariant** roles_varr = static_cast<QVariant**>(malloc(sizeof(QVariant*) * roles_ret.size()));
|
|
int roles_ctr = 0;
|
|
for (auto roles_itr = roles_ret.keyValueBegin(); roles_itr != roles_ret.keyValueEnd(); ++roles_itr) {
|
|
roles_karr[roles_ctr] = roles_itr->first;
|
|
roles_varr[roles_ctr] = new QVariant(roles_itr->second);
|
|
roles_ctr++;
|
|
}
|
|
struct miqt_map roles_out;
|
|
roles_out.len = roles_ret.size();
|
|
roles_out.keys = static_cast<void*>(roles_karr);
|
|
roles_out.values = static_cast<void*>(roles_varr);
|
|
struct miqt_map /* of int to QVariant* */ sigval2 = roles_out;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_setItemData(this, handle__setItemData, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_setItemData(QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) {
|
|
QMap<int, QVariant> roles_QMap;
|
|
int* roles_karr = static_cast<int*>(roles.keys);
|
|
QVariant** roles_varr = static_cast<QVariant**>(roles.values);
|
|
for(size_t i = 0; i < roles.len; ++i) {
|
|
roles_QMap[static_cast<int>(roles_karr[i])] = *(roles_varr[i]);
|
|
}
|
|
|
|
return QStandardItemModel::setItemData(*index, roles_QMap);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__sort = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void sort(int column, Qt::SortOrder order) override {
|
|
if (handle__sort == 0) {
|
|
QStandardItemModel::sort(column, order);
|
|
return;
|
|
}
|
|
|
|
int sigval1 = column;
|
|
Qt::SortOrder order_ret = order;
|
|
int sigval2 = static_cast<int>(order_ret);
|
|
|
|
miqt_exec_callback_QStandardItemModel_sort(this, handle__sort, sigval1, sigval2);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_sort(int column, int order) {
|
|
|
|
QStandardItemModel::sort(static_cast<int>(column), static_cast<Qt::SortOrder>(order));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__mimeTypes = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QStringList mimeTypes() const override {
|
|
if (handle__mimeTypes == 0) {
|
|
return QStandardItemModel::mimeTypes();
|
|
}
|
|
|
|
|
|
struct miqt_array /* of struct miqt_string */ callback_return_value = miqt_exec_callback_QStandardItemModel_mimeTypes(this, handle__mimeTypes);
|
|
QStringList callback_return_value_QList;
|
|
callback_return_value_QList.reserve(callback_return_value.len);
|
|
struct miqt_string* callback_return_value_arr = static_cast<struct miqt_string*>(callback_return_value.data);
|
|
for(size_t i = 0; i < callback_return_value.len; ++i) {
|
|
QString callback_return_value_arr_i_QString = QString::fromUtf8(callback_return_value_arr[i].data, callback_return_value_arr[i].len);
|
|
callback_return_value_QList.push_back(callback_return_value_arr_i_QString);
|
|
}
|
|
|
|
return callback_return_value_QList;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
struct miqt_array /* of struct miqt_string */ virtualbase_mimeTypes() const {
|
|
|
|
QStringList _ret = QStandardItemModel::mimeTypes();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
QString _lv_ret = _ret[i];
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
struct miqt_string _lv_ms;
|
|
_lv_ms.len = _lv_b.length();
|
|
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
|
|
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
|
|
_arr[i] = _lv_ms;
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__mimeData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QMimeData* mimeData(const QModelIndexList& indexes) const override {
|
|
if (handle__mimeData == 0) {
|
|
return QStandardItemModel::mimeData(indexes);
|
|
}
|
|
|
|
const QModelIndexList& indexes_ret = indexes;
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QModelIndex** indexes_arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * indexes_ret.length()));
|
|
for (size_t i = 0, e = indexes_ret.length(); i < e; ++i) {
|
|
indexes_arr[i] = new QModelIndex(indexes_ret[i]);
|
|
}
|
|
struct miqt_array indexes_out;
|
|
indexes_out.len = indexes_ret.length();
|
|
indexes_out.data = static_cast<void*>(indexes_arr);
|
|
struct miqt_array /* of QModelIndex* */ sigval1 = indexes_out;
|
|
|
|
QMimeData* callback_return_value = miqt_exec_callback_QStandardItemModel_mimeData(this, handle__mimeData, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QMimeData* virtualbase_mimeData(struct miqt_array /* of QModelIndex* */ indexes) const {
|
|
QModelIndexList indexes_QList;
|
|
indexes_QList.reserve(indexes.len);
|
|
QModelIndex** indexes_arr = static_cast<QModelIndex**>(indexes.data);
|
|
for(size_t i = 0; i < indexes.len; ++i) {
|
|
indexes_QList.push_back(*(indexes_arr[i]));
|
|
}
|
|
|
|
return QStandardItemModel::mimeData(indexes_QList);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__dropMimeData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) override {
|
|
if (handle__dropMimeData == 0) {
|
|
return QStandardItemModel::dropMimeData(data, action, row, column, parent);
|
|
}
|
|
|
|
QMimeData* sigval1 = (QMimeData*) data;
|
|
Qt::DropAction action_ret = action;
|
|
int sigval2 = static_cast<int>(action_ret);
|
|
int sigval3 = row;
|
|
int sigval4 = column;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval5 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_dropMimeData(this, handle__dropMimeData, sigval1, sigval2, sigval3, sigval4, sigval5);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_dropMimeData(QMimeData* data, int action, int row, int column, QModelIndex* parent) {
|
|
|
|
return QStandardItemModel::dropMimeData(data, static_cast<Qt::DropAction>(action), static_cast<int>(row), static_cast<int>(column), *parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__sibling = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const override {
|
|
if (handle__sibling == 0) {
|
|
return QStandardItemModel::sibling(row, column, idx);
|
|
}
|
|
|
|
int sigval1 = row;
|
|
int sigval2 = column;
|
|
const QModelIndex& idx_ret = idx;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval3 = const_cast<QModelIndex*>(&idx_ret);
|
|
|
|
QModelIndex* callback_return_value = miqt_exec_callback_QStandardItemModel_sibling(this, handle__sibling, sigval1, sigval2, sigval3);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QModelIndex* virtualbase_sibling(int row, int column, QModelIndex* idx) const {
|
|
|
|
return new QModelIndex(QStandardItemModel::sibling(static_cast<int>(row), static_cast<int>(column), *idx));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__canDropMimeData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const override {
|
|
if (handle__canDropMimeData == 0) {
|
|
return QStandardItemModel::canDropMimeData(data, action, row, column, parent);
|
|
}
|
|
|
|
QMimeData* sigval1 = (QMimeData*) data;
|
|
Qt::DropAction action_ret = action;
|
|
int sigval2 = static_cast<int>(action_ret);
|
|
int sigval3 = row;
|
|
int sigval4 = column;
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval5 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_canDropMimeData(this, handle__canDropMimeData, sigval1, sigval2, sigval3, sigval4, sigval5);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_canDropMimeData(QMimeData* data, int action, int row, int column, QModelIndex* parent) const {
|
|
|
|
return QStandardItemModel::canDropMimeData(data, static_cast<Qt::DropAction>(action), static_cast<int>(row), static_cast<int>(column), *parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__supportedDragActions = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::DropActions supportedDragActions() const override {
|
|
if (handle__supportedDragActions == 0) {
|
|
return QStandardItemModel::supportedDragActions();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QStandardItemModel_supportedDragActions(this, handle__supportedDragActions);
|
|
|
|
return static_cast<Qt::DropActions>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_supportedDragActions() const {
|
|
|
|
Qt::DropActions _ret = QStandardItemModel::supportedDragActions();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__moveRows = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) override {
|
|
if (handle__moveRows == 0) {
|
|
return QStandardItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild);
|
|
}
|
|
|
|
const QModelIndex& sourceParent_ret = sourceParent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&sourceParent_ret);
|
|
int sigval2 = sourceRow;
|
|
int sigval3 = count;
|
|
const QModelIndex& destinationParent_ret = destinationParent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval4 = const_cast<QModelIndex*>(&destinationParent_ret);
|
|
int sigval5 = destinationChild;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_moveRows(this, handle__moveRows, sigval1, sigval2, sigval3, sigval4, sigval5);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_moveRows(QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild) {
|
|
|
|
return QStandardItemModel::moveRows(*sourceParent, static_cast<int>(sourceRow), static_cast<int>(count), *destinationParent, static_cast<int>(destinationChild));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__moveColumns = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) override {
|
|
if (handle__moveColumns == 0) {
|
|
return QStandardItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild);
|
|
}
|
|
|
|
const QModelIndex& sourceParent_ret = sourceParent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&sourceParent_ret);
|
|
int sigval2 = sourceColumn;
|
|
int sigval3 = count;
|
|
const QModelIndex& destinationParent_ret = destinationParent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval4 = const_cast<QModelIndex*>(&destinationParent_ret);
|
|
int sigval5 = destinationChild;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_moveColumns(this, handle__moveColumns, sigval1, sigval2, sigval3, sigval4, sigval5);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_moveColumns(QModelIndex* sourceParent, int sourceColumn, int count, QModelIndex* destinationParent, int destinationChild) {
|
|
|
|
return QStandardItemModel::moveColumns(*sourceParent, static_cast<int>(sourceColumn), static_cast<int>(count), *destinationParent, static_cast<int>(destinationChild));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__fetchMore = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void fetchMore(const QModelIndex& parent) override {
|
|
if (handle__fetchMore == 0) {
|
|
QStandardItemModel::fetchMore(parent);
|
|
return;
|
|
}
|
|
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
miqt_exec_callback_QStandardItemModel_fetchMore(this, handle__fetchMore, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_fetchMore(QModelIndex* parent) {
|
|
|
|
QStandardItemModel::fetchMore(*parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__canFetchMore = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool canFetchMore(const QModelIndex& parent) const override {
|
|
if (handle__canFetchMore == 0) {
|
|
return QStandardItemModel::canFetchMore(parent);
|
|
}
|
|
|
|
const QModelIndex& parent_ret = parent;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&parent_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_canFetchMore(this, handle__canFetchMore, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_canFetchMore(QModelIndex* parent) const {
|
|
|
|
return QStandardItemModel::canFetchMore(*parent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__buddy = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QModelIndex buddy(const QModelIndex& index) const override {
|
|
if (handle__buddy == 0) {
|
|
return QStandardItemModel::buddy(index);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
|
|
QModelIndex* callback_return_value = miqt_exec_callback_QStandardItemModel_buddy(this, handle__buddy, sigval1);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QModelIndex* virtualbase_buddy(QModelIndex* index) const {
|
|
|
|
return new QModelIndex(QStandardItemModel::buddy(*index));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__match = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QModelIndexList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const override {
|
|
if (handle__match == 0) {
|
|
return QStandardItemModel::match(start, role, value, hits, flags);
|
|
}
|
|
|
|
const QModelIndex& start_ret = start;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&start_ret);
|
|
int sigval2 = role;
|
|
const QVariant& value_ret = value;
|
|
// Cast returned reference into pointer
|
|
QVariant* sigval3 = const_cast<QVariant*>(&value_ret);
|
|
int sigval4 = hits;
|
|
Qt::MatchFlags flags_ret = flags;
|
|
int sigval5 = static_cast<int>(flags_ret);
|
|
|
|
struct miqt_array /* of QModelIndex* */ callback_return_value = miqt_exec_callback_QStandardItemModel_match(this, handle__match, sigval1, sigval2, sigval3, sigval4, sigval5);
|
|
QModelIndexList callback_return_value_QList;
|
|
callback_return_value_QList.reserve(callback_return_value.len);
|
|
QModelIndex** callback_return_value_arr = static_cast<QModelIndex**>(callback_return_value.data);
|
|
for(size_t i = 0; i < callback_return_value.len; ++i) {
|
|
callback_return_value_QList.push_back(*(callback_return_value_arr[i]));
|
|
}
|
|
|
|
return callback_return_value_QList;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
struct miqt_array /* of QModelIndex* */ virtualbase_match(QModelIndex* start, int role, QVariant* value, int hits, int flags) const {
|
|
|
|
QModelIndexList _ret = QStandardItemModel::match(*start, static_cast<int>(role), *value, static_cast<int>(hits), static_cast<Qt::MatchFlags>(flags));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = new QModelIndex(_ret[i]);
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__span = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize span(const QModelIndex& index) const override {
|
|
if (handle__span == 0) {
|
|
return QStandardItemModel::span(index);
|
|
}
|
|
|
|
const QModelIndex& index_ret = index;
|
|
// Cast returned reference into pointer
|
|
QModelIndex* sigval1 = const_cast<QModelIndex*>(&index_ret);
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QStandardItemModel_span(this, handle__span, sigval1);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_span(QModelIndex* index) const {
|
|
|
|
return new QSize(QStandardItemModel::span(*index));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__submit = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool submit() override {
|
|
if (handle__submit == 0) {
|
|
return QStandardItemModel::submit();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_submit(this, handle__submit);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_submit() {
|
|
|
|
return QStandardItemModel::submit();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__revert = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void revert() override {
|
|
if (handle__revert == 0) {
|
|
QStandardItemModel::revert();
|
|
return;
|
|
}
|
|
|
|
|
|
miqt_exec_callback_QStandardItemModel_revert(this, handle__revert);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_revert() {
|
|
|
|
QStandardItemModel::revert();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__resetInternalData = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void resetInternalData() override {
|
|
if (handle__resetInternalData == 0) {
|
|
QStandardItemModel::resetInternalData();
|
|
return;
|
|
}
|
|
|
|
|
|
miqt_exec_callback_QStandardItemModel_resetInternalData(this, handle__resetInternalData);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_resetInternalData() {
|
|
|
|
QStandardItemModel::resetInternalData();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__event = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool event(QEvent* event) override {
|
|
if (handle__event == 0) {
|
|
return QStandardItemModel::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_event(this, handle__event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_event(QEvent* event) {
|
|
|
|
return QStandardItemModel::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__eventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
if (handle__eventFilter == 0) {
|
|
return QStandardItemModel::eventFilter(watched, event);
|
|
}
|
|
|
|
QObject* sigval1 = watched;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QStandardItemModel_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
|
|
|
|
return QStandardItemModel::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__timerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
if (handle__timerEvent == 0) {
|
|
QStandardItemModel::timerEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QStandardItemModel_timerEvent(this, handle__timerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_timerEvent(QTimerEvent* event) {
|
|
|
|
QStandardItemModel::timerEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__childEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
if (handle__childEvent == 0) {
|
|
QStandardItemModel::childEvent(event);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QStandardItemModel_childEvent(this, handle__childEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_childEvent(QChildEvent* event) {
|
|
|
|
QStandardItemModel::childEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__customEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__customEvent == 0) {
|
|
QStandardItemModel::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QStandardItemModel_customEvent(this, handle__customEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_customEvent(QEvent* event) {
|
|
|
|
QStandardItemModel::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__connectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__connectNotify == 0) {
|
|
QStandardItemModel::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QStandardItemModel_connectNotify(this, handle__connectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
|
|
|
QStandardItemModel::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__disconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__disconnectNotify == 0) {
|
|
QStandardItemModel::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QStandardItemModel_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
|
|
|
QStandardItemModel::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QStandardItemModel* QStandardItemModel_new() {
|
|
return new MiqtVirtualQStandardItemModel();
|
|
}
|
|
|
|
QStandardItemModel* QStandardItemModel_new2(int rows, int columns) {
|
|
return new MiqtVirtualQStandardItemModel(static_cast<int>(rows), static_cast<int>(columns));
|
|
}
|
|
|
|
QStandardItemModel* QStandardItemModel_new3(QObject* parent) {
|
|
return new MiqtVirtualQStandardItemModel(parent);
|
|
}
|
|
|
|
QStandardItemModel* QStandardItemModel_new4(int rows, int columns, QObject* parent) {
|
|
return new MiqtVirtualQStandardItemModel(static_cast<int>(rows), static_cast<int>(columns), parent);
|
|
}
|
|
|
|
void QStandardItemModel_virtbase(QStandardItemModel* src, QAbstractItemModel** outptr_QAbstractItemModel) {
|
|
*outptr_QAbstractItemModel = static_cast<QAbstractItemModel*>(src);
|
|
}
|
|
|
|
QMetaObject* QStandardItemModel_metaObject(const QStandardItemModel* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QStandardItemModel_metacast(QStandardItemModel* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QStandardItemModel_tr(const char* s) {
|
|
QString _ret = QStandardItemModel::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QStandardItemModel_setItemRoleNames(QStandardItemModel* self, struct miqt_map /* of int to struct miqt_string */ roleNames) {
|
|
QHash<int, QByteArray> roleNames_QMap;
|
|
roleNames_QMap.reserve(roleNames.len);
|
|
int* roleNames_karr = static_cast<int*>(roleNames.keys);
|
|
struct miqt_string* roleNames_varr = static_cast<struct miqt_string*>(roleNames.values);
|
|
for(size_t i = 0; i < roleNames.len; ++i) {
|
|
QByteArray roleNames_varr_i_QByteArray(roleNames_varr[i].data, roleNames_varr[i].len);
|
|
roleNames_QMap[static_cast<int>(roleNames_karr[i])] = roleNames_varr_i_QByteArray;
|
|
}
|
|
self->setItemRoleNames(roleNames_QMap);
|
|
}
|
|
|
|
struct miqt_map /* of int to struct miqt_string */ QStandardItemModel_roleNames(const QStandardItemModel* self) {
|
|
QHash<int, QByteArray> _ret = self->roleNames();
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
int* _karr = static_cast<int*>(malloc(sizeof(int) * _ret.size()));
|
|
struct miqt_string* _varr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.size()));
|
|
int _ctr = 0;
|
|
for (auto _itr = _ret.keyValueBegin(); _itr != _ret.keyValueEnd(); ++_itr) {
|
|
_karr[_ctr] = _itr->first;
|
|
QByteArray _hashval_qb = _itr->second;
|
|
struct miqt_string _hashval_ms;
|
|
_hashval_ms.len = _hashval_qb.length();
|
|
_hashval_ms.data = static_cast<char*>(malloc(_hashval_ms.len));
|
|
memcpy(_hashval_ms.data, _hashval_qb.data(), _hashval_ms.len);
|
|
_varr[_ctr] = _hashval_ms;
|
|
_ctr++;
|
|
}
|
|
struct miqt_map _out;
|
|
_out.len = _ret.size();
|
|
_out.keys = static_cast<void*>(_karr);
|
|
_out.values = static_cast<void*>(_varr);
|
|
return _out;
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_index(const QStandardItemModel* self, int row, int column, QModelIndex* parent) {
|
|
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_parent(const QStandardItemModel* self, QModelIndex* child) {
|
|
return new QModelIndex(self->parent(*child));
|
|
}
|
|
|
|
int QStandardItemModel_rowCount(const QStandardItemModel* self, QModelIndex* parent) {
|
|
return self->rowCount(*parent);
|
|
}
|
|
|
|
int QStandardItemModel_columnCount(const QStandardItemModel* self, QModelIndex* parent) {
|
|
return self->columnCount(*parent);
|
|
}
|
|
|
|
bool QStandardItemModel_hasChildren(const QStandardItemModel* self, QModelIndex* parent) {
|
|
return self->hasChildren(*parent);
|
|
}
|
|
|
|
QVariant* QStandardItemModel_data(const QStandardItemModel* self, QModelIndex* index, int role) {
|
|
return new QVariant(self->data(*index, static_cast<int>(role)));
|
|
}
|
|
|
|
void QStandardItemModel_multiData(const QStandardItemModel* self, QModelIndex* index, QModelRoleDataSpan* roleDataSpan) {
|
|
self->multiData(*index, *roleDataSpan);
|
|
}
|
|
|
|
bool QStandardItemModel_setData(QStandardItemModel* self, QModelIndex* index, QVariant* value, int role) {
|
|
return self->setData(*index, *value, static_cast<int>(role));
|
|
}
|
|
|
|
bool QStandardItemModel_clearItemData(QStandardItemModel* self, QModelIndex* index) {
|
|
return self->clearItemData(*index);
|
|
}
|
|
|
|
QVariant* QStandardItemModel_headerData(const QStandardItemModel* self, int section, int orientation, int role) {
|
|
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
|
|
}
|
|
|
|
bool QStandardItemModel_setHeaderData(QStandardItemModel* self, int section, int orientation, QVariant* value, int role) {
|
|
return self->setHeaderData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), *value, static_cast<int>(role));
|
|
}
|
|
|
|
bool QStandardItemModel_insertRows(QStandardItemModel* self, int row, int count, QModelIndex* parent) {
|
|
return self->insertRows(static_cast<int>(row), static_cast<int>(count), *parent);
|
|
}
|
|
|
|
bool QStandardItemModel_insertColumns(QStandardItemModel* self, int column, int count, QModelIndex* parent) {
|
|
return self->insertColumns(static_cast<int>(column), static_cast<int>(count), *parent);
|
|
}
|
|
|
|
bool QStandardItemModel_removeRows(QStandardItemModel* self, int row, int count, QModelIndex* parent) {
|
|
return self->removeRows(static_cast<int>(row), static_cast<int>(count), *parent);
|
|
}
|
|
|
|
bool QStandardItemModel_removeColumns(QStandardItemModel* self, int column, int count, QModelIndex* parent) {
|
|
return self->removeColumns(static_cast<int>(column), static_cast<int>(count), *parent);
|
|
}
|
|
|
|
int QStandardItemModel_flags(const QStandardItemModel* self, QModelIndex* index) {
|
|
Qt::ItemFlags _ret = self->flags(*index);
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QStandardItemModel_supportedDropActions(const QStandardItemModel* self) {
|
|
Qt::DropActions _ret = self->supportedDropActions();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
struct miqt_map /* of int to QVariant* */ QStandardItemModel_itemData(const QStandardItemModel* self, QModelIndex* index) {
|
|
QMap<int, QVariant> _ret = self->itemData(*index);
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
int* _karr = static_cast<int*>(malloc(sizeof(int) * _ret.size()));
|
|
QVariant** _varr = static_cast<QVariant**>(malloc(sizeof(QVariant*) * _ret.size()));
|
|
int _ctr = 0;
|
|
for (auto _itr = _ret.keyValueBegin(); _itr != _ret.keyValueEnd(); ++_itr) {
|
|
_karr[_ctr] = _itr->first;
|
|
_varr[_ctr] = new QVariant(_itr->second);
|
|
_ctr++;
|
|
}
|
|
struct miqt_map _out;
|
|
_out.len = _ret.size();
|
|
_out.keys = static_cast<void*>(_karr);
|
|
_out.values = static_cast<void*>(_varr);
|
|
return _out;
|
|
}
|
|
|
|
bool QStandardItemModel_setItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) {
|
|
QMap<int, QVariant> roles_QMap;
|
|
int* roles_karr = static_cast<int*>(roles.keys);
|
|
QVariant** roles_varr = static_cast<QVariant**>(roles.values);
|
|
for(size_t i = 0; i < roles.len; ++i) {
|
|
roles_QMap[static_cast<int>(roles_karr[i])] = *(roles_varr[i]);
|
|
}
|
|
return self->setItemData(*index, roles_QMap);
|
|
}
|
|
|
|
void QStandardItemModel_clear(QStandardItemModel* self) {
|
|
self->clear();
|
|
}
|
|
|
|
void QStandardItemModel_sort(QStandardItemModel* self, int column, int order) {
|
|
self->sort(static_cast<int>(column), static_cast<Qt::SortOrder>(order));
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_itemFromIndex(const QStandardItemModel* self, QModelIndex* index) {
|
|
return self->itemFromIndex(*index);
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_indexFromItem(const QStandardItemModel* self, QStandardItem* item) {
|
|
return new QModelIndex(self->indexFromItem(item));
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_item(const QStandardItemModel* self, int row) {
|
|
return self->item(static_cast<int>(row));
|
|
}
|
|
|
|
void QStandardItemModel_setItem(QStandardItemModel* self, int row, int column, QStandardItem* item) {
|
|
self->setItem(static_cast<int>(row), static_cast<int>(column), item);
|
|
}
|
|
|
|
void QStandardItemModel_setItem2(QStandardItemModel* self, int row, QStandardItem* item) {
|
|
self->setItem(static_cast<int>(row), item);
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_invisibleRootItem(const QStandardItemModel* self) {
|
|
return self->invisibleRootItem();
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_horizontalHeaderItem(const QStandardItemModel* self, int column) {
|
|
return self->horizontalHeaderItem(static_cast<int>(column));
|
|
}
|
|
|
|
void QStandardItemModel_setHorizontalHeaderItem(QStandardItemModel* self, int column, QStandardItem* item) {
|
|
self->setHorizontalHeaderItem(static_cast<int>(column), item);
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_verticalHeaderItem(const QStandardItemModel* self, int row) {
|
|
return self->verticalHeaderItem(static_cast<int>(row));
|
|
}
|
|
|
|
void QStandardItemModel_setVerticalHeaderItem(QStandardItemModel* self, int row, QStandardItem* item) {
|
|
self->setVerticalHeaderItem(static_cast<int>(row), item);
|
|
}
|
|
|
|
void QStandardItemModel_setHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) {
|
|
QStringList labels_QList;
|
|
labels_QList.reserve(labels.len);
|
|
struct miqt_string* labels_arr = static_cast<struct miqt_string*>(labels.data);
|
|
for(size_t i = 0; i < labels.len; ++i) {
|
|
QString labels_arr_i_QString = QString::fromUtf8(labels_arr[i].data, labels_arr[i].len);
|
|
labels_QList.push_back(labels_arr_i_QString);
|
|
}
|
|
self->setHorizontalHeaderLabels(labels_QList);
|
|
}
|
|
|
|
void QStandardItemModel_setVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) {
|
|
QStringList labels_QList;
|
|
labels_QList.reserve(labels.len);
|
|
struct miqt_string* labels_arr = static_cast<struct miqt_string*>(labels.data);
|
|
for(size_t i = 0; i < labels.len; ++i) {
|
|
QString labels_arr_i_QString = QString::fromUtf8(labels_arr[i].data, labels_arr[i].len);
|
|
labels_QList.push_back(labels_arr_i_QString);
|
|
}
|
|
self->setVerticalHeaderLabels(labels_QList);
|
|
}
|
|
|
|
void QStandardItemModel_setRowCount(QStandardItemModel* self, int rows) {
|
|
self->setRowCount(static_cast<int>(rows));
|
|
}
|
|
|
|
void QStandardItemModel_setColumnCount(QStandardItemModel* self, int columns) {
|
|
self->setColumnCount(static_cast<int>(columns));
|
|
}
|
|
|
|
void QStandardItemModel_appendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->appendRow(items_QList);
|
|
}
|
|
|
|
void QStandardItemModel_appendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->appendColumn(items_QList);
|
|
}
|
|
|
|
void QStandardItemModel_appendRowWithItem(QStandardItemModel* self, QStandardItem* item) {
|
|
self->appendRow(item);
|
|
}
|
|
|
|
void QStandardItemModel_insertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->insertRow(static_cast<int>(row), items_QList);
|
|
}
|
|
|
|
void QStandardItemModel_insertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items) {
|
|
QList<QStandardItem *> items_QList;
|
|
items_QList.reserve(items.len);
|
|
QStandardItem** items_arr = static_cast<QStandardItem**>(items.data);
|
|
for(size_t i = 0; i < items.len; ++i) {
|
|
items_QList.push_back(items_arr[i]);
|
|
}
|
|
self->insertColumn(static_cast<int>(column), items_QList);
|
|
}
|
|
|
|
void QStandardItemModel_insertRow2(QStandardItemModel* self, int row, QStandardItem* item) {
|
|
self->insertRow(static_cast<int>(row), item);
|
|
}
|
|
|
|
bool QStandardItemModel_insertRowWithRow(QStandardItemModel* self, int row) {
|
|
return self->insertRow(static_cast<int>(row));
|
|
}
|
|
|
|
bool QStandardItemModel_insertColumnWithColumn(QStandardItemModel* self, int column) {
|
|
return self->insertColumn(static_cast<int>(column));
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_takeItem(QStandardItemModel* self, int row) {
|
|
return self->takeItem(static_cast<int>(row));
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItemModel_takeRow(QStandardItemModel* self, int row) {
|
|
QList<QStandardItem *> _ret = self->takeRow(static_cast<int>(row));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItemModel_takeColumn(QStandardItemModel* self, int column) {
|
|
QList<QStandardItem *> _ret = self->takeColumn(static_cast<int>(column));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_takeHorizontalHeaderItem(QStandardItemModel* self, int column) {
|
|
return self->takeHorizontalHeaderItem(static_cast<int>(column));
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_takeVerticalHeaderItem(QStandardItemModel* self, int row) {
|
|
return self->takeVerticalHeaderItem(static_cast<int>(row));
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_itemPrototype(const QStandardItemModel* self) {
|
|
return (QStandardItem*) self->itemPrototype();
|
|
}
|
|
|
|
void QStandardItemModel_setItemPrototype(QStandardItemModel* self, QStandardItem* item) {
|
|
self->setItemPrototype(item);
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItemModel_findItems(const QStandardItemModel* self, struct miqt_string text) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
QList<QStandardItem *> _ret = self->findItems(text_QString);
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
int QStandardItemModel_sortRole(const QStandardItemModel* self) {
|
|
return self->sortRole();
|
|
}
|
|
|
|
void QStandardItemModel_setSortRole(QStandardItemModel* self, int role) {
|
|
self->setSortRole(static_cast<int>(role));
|
|
}
|
|
|
|
struct miqt_array /* of struct miqt_string */ QStandardItemModel_mimeTypes(const QStandardItemModel* self) {
|
|
QStringList _ret = self->mimeTypes();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
QString _lv_ret = _ret[i];
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
struct miqt_string _lv_ms;
|
|
_lv_ms.len = _lv_b.length();
|
|
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
|
|
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
|
|
_arr[i] = _lv_ms;
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
QMimeData* QStandardItemModel_mimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) {
|
|
QModelIndexList indexes_QList;
|
|
indexes_QList.reserve(indexes.len);
|
|
QModelIndex** indexes_arr = static_cast<QModelIndex**>(indexes.data);
|
|
for(size_t i = 0; i < indexes.len; ++i) {
|
|
indexes_QList.push_back(*(indexes_arr[i]));
|
|
}
|
|
return self->mimeData(indexes_QList);
|
|
}
|
|
|
|
bool QStandardItemModel_dropMimeData(QStandardItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) {
|
|
return self->dropMimeData(data, static_cast<Qt::DropAction>(action), static_cast<int>(row), static_cast<int>(column), *parent);
|
|
}
|
|
|
|
void QStandardItemModel_itemChanged(QStandardItemModel* self, QStandardItem* item) {
|
|
self->itemChanged(item);
|
|
}
|
|
|
|
void QStandardItemModel_connect_itemChanged(QStandardItemModel* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel::connect(self, static_cast<void (QStandardItemModel::*)(QStandardItem*)>(&QStandardItemModel::itemChanged), self, [=](QStandardItem* item) {
|
|
QStandardItem* sigval1 = item;
|
|
miqt_exec_callback_QStandardItemModel_itemChanged(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string QStandardItemModel_tr2(const char* s, const char* c) {
|
|
QString _ret = QStandardItemModel::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QStandardItemModel_tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QStandardItemModel::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_item2(const QStandardItemModel* self, int row, int column) {
|
|
return self->item(static_cast<int>(row), static_cast<int>(column));
|
|
}
|
|
|
|
bool QStandardItemModel_insertRow22(QStandardItemModel* self, int row, QModelIndex* parent) {
|
|
return self->insertRow(static_cast<int>(row), *parent);
|
|
}
|
|
|
|
bool QStandardItemModel_insertColumn2(QStandardItemModel* self, int column, QModelIndex* parent) {
|
|
return self->insertColumn(static_cast<int>(column), *parent);
|
|
}
|
|
|
|
QStandardItem* QStandardItemModel_takeItem2(QStandardItemModel* self, int row, int column) {
|
|
return self->takeItem(static_cast<int>(row), static_cast<int>(column));
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItemModel_findItems2(const QStandardItemModel* self, struct miqt_string text, int flags) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
QList<QStandardItem *> _ret = self->findItems(text_QString, static_cast<Qt::MatchFlags>(flags));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
struct miqt_array /* of QStandardItem* */ QStandardItemModel_findItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
QList<QStandardItem *> _ret = self->findItems(text_QString, static_cast<Qt::MatchFlags>(flags), static_cast<int>(column));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QStandardItem** _arr = static_cast<QStandardItem**>(malloc(sizeof(QStandardItem*) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
_arr[i] = _ret[i];
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_roleNames(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__roleNames = slot;
|
|
return true;
|
|
}
|
|
|
|
struct miqt_map /* of int to struct miqt_string */ QStandardItemModel_virtualbase_roleNames(const void* self) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_roleNames();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_index(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__index = slot;
|
|
return true;
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_virtualbase_index(const void* self, int row, int column, QModelIndex* parent) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_index(row, column, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_parent(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__parent = slot;
|
|
return true;
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_virtualbase_parent(const void* self, QModelIndex* child) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_parent(child);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_rowCount(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__rowCount = slot;
|
|
return true;
|
|
}
|
|
|
|
int QStandardItemModel_virtualbase_rowCount(const void* self, QModelIndex* parent) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_rowCount(parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_columnCount(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__columnCount = slot;
|
|
return true;
|
|
}
|
|
|
|
int QStandardItemModel_virtualbase_columnCount(const void* self, QModelIndex* parent) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_columnCount(parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_hasChildren(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hasChildren = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_hasChildren(const void* self, QModelIndex* parent) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_hasChildren(parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_data(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__data = slot;
|
|
return true;
|
|
}
|
|
|
|
QVariant* QStandardItemModel_virtualbase_data(const void* self, QModelIndex* index, int role) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_data(index, role);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_multiData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__multiData = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_multiData(const void* self, QModelIndex* index, QModelRoleDataSpan* roleDataSpan) {
|
|
( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_multiData(index, roleDataSpan);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_setData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setData = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_setData(void* self, QModelIndex* index, QVariant* value, int role) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_setData(index, value, role);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_clearItemData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__clearItemData = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_clearItemData(void* self, QModelIndex* index) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_clearItemData(index);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_headerData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__headerData = slot;
|
|
return true;
|
|
}
|
|
|
|
QVariant* QStandardItemModel_virtualbase_headerData(const void* self, int section, int orientation, int role) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_headerData(section, orientation, role);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_setHeaderData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setHeaderData = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_setHeaderData(void* self, int section, int orientation, QVariant* value, int role) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_setHeaderData(section, orientation, value, role);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_insertRows(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__insertRows = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_insertRows(void* self, int row, int count, QModelIndex* parent) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_insertRows(row, count, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_insertColumns(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__insertColumns = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_insertColumns(void* self, int column, int count, QModelIndex* parent) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_insertColumns(column, count, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_removeRows(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__removeRows = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_removeRows(void* self, int row, int count, QModelIndex* parent) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_removeRows(row, count, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_removeColumns(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__removeColumns = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_removeColumns(void* self, int column, int count, QModelIndex* parent) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_removeColumns(column, count, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_flags(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__flags = slot;
|
|
return true;
|
|
}
|
|
|
|
int QStandardItemModel_virtualbase_flags(const void* self, QModelIndex* index) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_flags(index);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_supportedDropActions(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__supportedDropActions = slot;
|
|
return true;
|
|
}
|
|
|
|
int QStandardItemModel_virtualbase_supportedDropActions(const void* self) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_supportedDropActions();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_itemData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__itemData = slot;
|
|
return true;
|
|
}
|
|
|
|
struct miqt_map /* of int to QVariant* */ QStandardItemModel_virtualbase_itemData(const void* self, QModelIndex* index) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_itemData(index);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_setItemData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setItemData = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_setItemData(void* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_setItemData(index, roles);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_sort(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sort = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_sort(void* self, int column, int order) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_sort(column, order);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_mimeTypes(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__mimeTypes = slot;
|
|
return true;
|
|
}
|
|
|
|
struct miqt_array /* of struct miqt_string */ QStandardItemModel_virtualbase_mimeTypes(const void* self) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_mimeTypes();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_mimeData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__mimeData = slot;
|
|
return true;
|
|
}
|
|
|
|
QMimeData* QStandardItemModel_virtualbase_mimeData(const void* self, struct miqt_array /* of QModelIndex* */ indexes) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_mimeData(indexes);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_dropMimeData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__dropMimeData = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_dropMimeData(void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_dropMimeData(data, action, row, column, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_sibling(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sibling = slot;
|
|
return true;
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_virtualbase_sibling(const void* self, int row, int column, QModelIndex* idx) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_sibling(row, column, idx);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_canDropMimeData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__canDropMimeData = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_canDropMimeData(const void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_canDropMimeData(data, action, row, column, parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_supportedDragActions(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__supportedDragActions = slot;
|
|
return true;
|
|
}
|
|
|
|
int QStandardItemModel_virtualbase_supportedDragActions(const void* self) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_supportedDragActions();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_moveRows(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__moveRows = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_moveRows(void* self, QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_moveColumns(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__moveColumns = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_moveColumns(void* self, QModelIndex* sourceParent, int sourceColumn, int count, QModelIndex* destinationParent, int destinationChild) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_fetchMore(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__fetchMore = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_fetchMore(void* self, QModelIndex* parent) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_fetchMore(parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_canFetchMore(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__canFetchMore = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_canFetchMore(const void* self, QModelIndex* parent) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_canFetchMore(parent);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_buddy(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__buddy = slot;
|
|
return true;
|
|
}
|
|
|
|
QModelIndex* QStandardItemModel_virtualbase_buddy(const void* self, QModelIndex* index) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_buddy(index);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_match(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__match = slot;
|
|
return true;
|
|
}
|
|
|
|
struct miqt_array /* of QModelIndex* */ QStandardItemModel_virtualbase_match(const void* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_match(start, role, value, hits, flags);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_span(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__span = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QStandardItemModel_virtualbase_span(const void* self, QModelIndex* index) {
|
|
return ( (const MiqtVirtualQStandardItemModel*)(self) )->virtualbase_span(index);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_submit(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__submit = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_submit(void* self) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_submit();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_revert(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__revert = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_revert(void* self) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_revert();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_resetInternalData(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__resetInternalData = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_resetInternalData(void* self) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_resetInternalData();
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_event(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__event = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_event(event);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_eventFilter(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__eventFilter = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QStandardItemModel_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
return ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_eventFilter(watched, event);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_timerEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__timerEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_timerEvent(event);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_childEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__childEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_childEvent(event);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_customEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__customEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_customEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_customEvent(event);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_connectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__connectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_connectNotify(signal);
|
|
}
|
|
|
|
bool QStandardItemModel_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQStandardItemModel* self_cast = dynamic_cast<MiqtVirtualQStandardItemModel*>( (QStandardItemModel*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__disconnectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QStandardItemModel_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_disconnectNotify(signal);
|
|
}
|
|
|
|
void QStandardItemModel_delete(QStandardItemModel* self) {
|
|
delete self;
|
|
}
|
|
|