#include #include #include #include #include #include #include #include #include #include #include #include "gen_qtransposeproxymodel.h" #include "_cgo_export.h" QTransposeProxyModel* QTransposeProxyModel_new() { return new QTransposeProxyModel(); } QTransposeProxyModel* QTransposeProxyModel_new2(QObject* parent) { return new QTransposeProxyModel(parent); } QMetaObject* QTransposeProxyModel_MetaObject(const QTransposeProxyModel* self) { return (QMetaObject*) self->metaObject(); } void* QTransposeProxyModel_Metacast(QTransposeProxyModel* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QTransposeProxyModel_Tr(const char* s) { QString _ret = QTransposeProxyModel::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QTransposeProxyModel_SetSourceModel(QTransposeProxyModel* self, QAbstractItemModel* newSourceModel) { self->setSourceModel(newSourceModel); } int QTransposeProxyModel_RowCount(const QTransposeProxyModel* self) { return self->rowCount(); } int QTransposeProxyModel_ColumnCount(const QTransposeProxyModel* self) { return self->columnCount(); } QVariant* QTransposeProxyModel_HeaderData(const QTransposeProxyModel* self, int section, int orientation) { return new QVariant(self->headerData(static_cast(section), static_cast(orientation))); } bool QTransposeProxyModel_SetHeaderData(QTransposeProxyModel* self, int section, int orientation, QVariant* value) { return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } QSize* QTransposeProxyModel_Span(const QTransposeProxyModel* self, QModelIndex* index) { return new QSize(self->span(*index)); } QModelIndex* QTransposeProxyModel_MapFromSource(const QTransposeProxyModel* self, QModelIndex* sourceIndex) { return new QModelIndex(self->mapFromSource(*sourceIndex)); } QModelIndex* QTransposeProxyModel_MapToSource(const QTransposeProxyModel* self, QModelIndex* proxyIndex) { return new QModelIndex(self->mapToSource(*proxyIndex)); } QModelIndex* QTransposeProxyModel_Parent(const QTransposeProxyModel* self, QModelIndex* index) { return new QModelIndex(self->parent(*index)); } QModelIndex* QTransposeProxyModel_Index(const QTransposeProxyModel* self, int row, int column) { return new QModelIndex(self->index(static_cast(row), static_cast(column))); } bool QTransposeProxyModel_InsertRows(QTransposeProxyModel* self, int row, int count) { return self->insertRows(static_cast(row), static_cast(count)); } bool QTransposeProxyModel_RemoveRows(QTransposeProxyModel* self, int row, int count) { return self->removeRows(static_cast(row), static_cast(count)); } bool QTransposeProxyModel_MoveRows(QTransposeProxyModel* self, QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild) { return self->moveRows(*sourceParent, static_cast(sourceRow), static_cast(count), *destinationParent, static_cast(destinationChild)); } bool QTransposeProxyModel_InsertColumns(QTransposeProxyModel* self, int column, int count) { return self->insertColumns(static_cast(column), static_cast(count)); } bool QTransposeProxyModel_RemoveColumns(QTransposeProxyModel* self, int column, int count) { return self->removeColumns(static_cast(column), static_cast(count)); } bool QTransposeProxyModel_MoveColumns(QTransposeProxyModel* self, QModelIndex* sourceParent, int sourceColumn, int count, QModelIndex* destinationParent, int destinationChild) { return self->moveColumns(*sourceParent, static_cast(sourceColumn), static_cast(count), *destinationParent, static_cast(destinationChild)); } void QTransposeProxyModel_Sort(QTransposeProxyModel* self, int column) { self->sort(static_cast(column)); } struct miqt_string QTransposeProxyModel_Tr2(const char* s, const char* c) { QString _ret = QTransposeProxyModel::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QTransposeProxyModel_Tr3(const char* s, const char* c, int n) { QString _ret = QTransposeProxyModel::tr(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QTransposeProxyModel_RowCount1(const QTransposeProxyModel* self, QModelIndex* parent) { return self->rowCount(*parent); } int QTransposeProxyModel_ColumnCount1(const QTransposeProxyModel* self, QModelIndex* parent) { return self->columnCount(*parent); } QVariant* QTransposeProxyModel_HeaderData3(const QTransposeProxyModel* self, int section, int orientation, int role) { return new QVariant(self->headerData(static_cast(section), static_cast(orientation), static_cast(role))); } bool QTransposeProxyModel_SetHeaderData4(QTransposeProxyModel* self, int section, int orientation, QVariant* value, int role) { return self->setHeaderData(static_cast(section), static_cast(orientation), *value, static_cast(role)); } QModelIndex* QTransposeProxyModel_Index3(const QTransposeProxyModel* self, int row, int column, QModelIndex* parent) { return new QModelIndex(self->index(static_cast(row), static_cast(column), *parent)); } bool QTransposeProxyModel_InsertRows3(QTransposeProxyModel* self, int row, int count, QModelIndex* parent) { return self->insertRows(static_cast(row), static_cast(count), *parent); } bool QTransposeProxyModel_RemoveRows3(QTransposeProxyModel* self, int row, int count, QModelIndex* parent) { return self->removeRows(static_cast(row), static_cast(count), *parent); } bool QTransposeProxyModel_InsertColumns3(QTransposeProxyModel* self, int column, int count, QModelIndex* parent) { return self->insertColumns(static_cast(column), static_cast(count), *parent); } bool QTransposeProxyModel_RemoveColumns3(QTransposeProxyModel* self, int column, int count, QModelIndex* parent) { return self->removeColumns(static_cast(column), static_cast(count), *parent); } void QTransposeProxyModel_Sort2(QTransposeProxyModel* self, int column, int order) { self->sort(static_cast(column), static_cast(order)); } void QTransposeProxyModel_Delete(QTransposeProxyModel* self) { delete self; }