#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qabstractproxymodel.h" #ifdef __cplusplus extern "C" { #endif void miqt_exec_callback_QAbstractProxyModel_setSourceModel(QAbstractProxyModel*, intptr_t, QAbstractItemModel*); QModelIndex* miqt_exec_callback_QAbstractProxyModel_mapToSource(const QAbstractProxyModel*, intptr_t, QModelIndex*); QModelIndex* miqt_exec_callback_QAbstractProxyModel_mapFromSource(const QAbstractProxyModel*, intptr_t, QModelIndex*); QItemSelection* miqt_exec_callback_QAbstractProxyModel_mapSelectionToSource(const QAbstractProxyModel*, intptr_t, QItemSelection*); QItemSelection* miqt_exec_callback_QAbstractProxyModel_mapSelectionFromSource(const QAbstractProxyModel*, intptr_t, QItemSelection*); bool miqt_exec_callback_QAbstractProxyModel_submit(QAbstractProxyModel*, intptr_t); void miqt_exec_callback_QAbstractProxyModel_revert(QAbstractProxyModel*, intptr_t); QVariant* miqt_exec_callback_QAbstractProxyModel_data(const QAbstractProxyModel*, intptr_t, QModelIndex*, int); QVariant* miqt_exec_callback_QAbstractProxyModel_headerData(const QAbstractProxyModel*, intptr_t, int, int, int); struct miqt_map /* of int to QVariant* */ miqt_exec_callback_QAbstractProxyModel_itemData(const QAbstractProxyModel*, intptr_t, QModelIndex*); int miqt_exec_callback_QAbstractProxyModel_flags(const QAbstractProxyModel*, intptr_t, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_setData(QAbstractProxyModel*, intptr_t, QModelIndex*, QVariant*, int); bool miqt_exec_callback_QAbstractProxyModel_setItemData(QAbstractProxyModel*, intptr_t, QModelIndex*, struct miqt_map /* of int to QVariant* */ ); bool miqt_exec_callback_QAbstractProxyModel_setHeaderData(QAbstractProxyModel*, intptr_t, int, int, QVariant*, int); QModelIndex* miqt_exec_callback_QAbstractProxyModel_buddy(const QAbstractProxyModel*, intptr_t, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_canFetchMore(const QAbstractProxyModel*, intptr_t, QModelIndex*); void miqt_exec_callback_QAbstractProxyModel_fetchMore(QAbstractProxyModel*, intptr_t, QModelIndex*); void miqt_exec_callback_QAbstractProxyModel_sort(QAbstractProxyModel*, intptr_t, int, int); QSize* miqt_exec_callback_QAbstractProxyModel_span(const QAbstractProxyModel*, intptr_t, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_hasChildren(const QAbstractProxyModel*, intptr_t, QModelIndex*); QModelIndex* miqt_exec_callback_QAbstractProxyModel_sibling(const QAbstractProxyModel*, intptr_t, int, int, QModelIndex*); QMimeData* miqt_exec_callback_QAbstractProxyModel_mimeData(const QAbstractProxyModel*, intptr_t, struct miqt_array /* of QModelIndex* */ ); bool miqt_exec_callback_QAbstractProxyModel_canDropMimeData(const QAbstractProxyModel*, intptr_t, QMimeData*, int, int, int, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_dropMimeData(QAbstractProxyModel*, intptr_t, QMimeData*, int, int, int, QModelIndex*); struct miqt_array /* of struct miqt_string */ miqt_exec_callback_QAbstractProxyModel_mimeTypes(const QAbstractProxyModel*, intptr_t); int miqt_exec_callback_QAbstractProxyModel_supportedDragActions(const QAbstractProxyModel*, intptr_t); int miqt_exec_callback_QAbstractProxyModel_supportedDropActions(const QAbstractProxyModel*, intptr_t); QModelIndex* miqt_exec_callback_QAbstractProxyModel_index(const QAbstractProxyModel*, intptr_t, int, int, QModelIndex*); QModelIndex* miqt_exec_callback_QAbstractProxyModel_parent(const QAbstractProxyModel*, intptr_t, QModelIndex*); int miqt_exec_callback_QAbstractProxyModel_rowCount(const QAbstractProxyModel*, intptr_t, QModelIndex*); int miqt_exec_callback_QAbstractProxyModel_columnCount(const QAbstractProxyModel*, intptr_t, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_insertRows(QAbstractProxyModel*, intptr_t, int, int, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_insertColumns(QAbstractProxyModel*, intptr_t, int, int, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_removeRows(QAbstractProxyModel*, intptr_t, int, int, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_removeColumns(QAbstractProxyModel*, intptr_t, int, int, QModelIndex*); bool miqt_exec_callback_QAbstractProxyModel_moveRows(QAbstractProxyModel*, intptr_t, QModelIndex*, int, int, QModelIndex*, int); bool miqt_exec_callback_QAbstractProxyModel_moveColumns(QAbstractProxyModel*, intptr_t, QModelIndex*, int, int, QModelIndex*, int); struct miqt_array /* of QModelIndex* */ miqt_exec_callback_QAbstractProxyModel_match(const QAbstractProxyModel*, intptr_t, QModelIndex*, int, QVariant*, int, int); struct miqt_map /* of int to struct miqt_string */ miqt_exec_callback_QAbstractProxyModel_roleNames(const QAbstractProxyModel*, intptr_t); bool miqt_exec_callback_QAbstractProxyModel_event(QAbstractProxyModel*, intptr_t, QEvent*); bool miqt_exec_callback_QAbstractProxyModel_eventFilter(QAbstractProxyModel*, intptr_t, QObject*, QEvent*); void miqt_exec_callback_QAbstractProxyModel_timerEvent(QAbstractProxyModel*, intptr_t, QTimerEvent*); void miqt_exec_callback_QAbstractProxyModel_childEvent(QAbstractProxyModel*, intptr_t, QChildEvent*); void miqt_exec_callback_QAbstractProxyModel_customEvent(QAbstractProxyModel*, intptr_t, QEvent*); void miqt_exec_callback_QAbstractProxyModel_connectNotify(QAbstractProxyModel*, intptr_t, QMetaMethod*); void miqt_exec_callback_QAbstractProxyModel_disconnectNotify(QAbstractProxyModel*, intptr_t, QMetaMethod*); #ifdef __cplusplus } /* extern C */ #endif class MiqtVirtualQAbstractProxyModel final : public QAbstractProxyModel { public: MiqtVirtualQAbstractProxyModel(): QAbstractProxyModel() {}; MiqtVirtualQAbstractProxyModel(QObject* parent): QAbstractProxyModel(parent) {}; virtual ~MiqtVirtualQAbstractProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__setSourceModel = 0; // Subclass to allow providing a Go implementation virtual void setSourceModel(QAbstractItemModel* sourceModel) override { if (handle__setSourceModel == 0) { QAbstractProxyModel::setSourceModel(sourceModel); return; } QAbstractItemModel* sigval1 = sourceModel; miqt_exec_callback_QAbstractProxyModel_setSourceModel(this, handle__setSourceModel, sigval1); } // Wrapper to allow calling protected method void virtualbase_setSourceModel(QAbstractItemModel* sourceModel) { QAbstractProxyModel::setSourceModel(sourceModel); } // cgo.Handle value for overwritten implementation intptr_t handle__mapToSource = 0; // Subclass to allow providing a Go implementation virtual QModelIndex mapToSource(const QModelIndex& proxyIndex) const override { if (handle__mapToSource == 0) { return QModelIndex(); // Pure virtual, there is no base we can call } const QModelIndex& proxyIndex_ret = proxyIndex; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&proxyIndex_ret); QModelIndex* callback_return_value = miqt_exec_callback_QAbstractProxyModel_mapToSource(this, handle__mapToSource, sigval1); return *callback_return_value; } // cgo.Handle value for overwritten implementation intptr_t handle__mapFromSource = 0; // Subclass to allow providing a Go implementation virtual QModelIndex mapFromSource(const QModelIndex& sourceIndex) const override { if (handle__mapFromSource == 0) { return QModelIndex(); // Pure virtual, there is no base we can call } const QModelIndex& sourceIndex_ret = sourceIndex; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&sourceIndex_ret); QModelIndex* callback_return_value = miqt_exec_callback_QAbstractProxyModel_mapFromSource(this, handle__mapFromSource, sigval1); return *callback_return_value; } // cgo.Handle value for overwritten implementation intptr_t handle__mapSelectionToSource = 0; // Subclass to allow providing a Go implementation virtual QItemSelection mapSelectionToSource(const QItemSelection& selection) const override { if (handle__mapSelectionToSource == 0) { return QAbstractProxyModel::mapSelectionToSource(selection); } const QItemSelection& selection_ret = selection; // Cast returned reference into pointer QItemSelection* sigval1 = const_cast(&selection_ret); QItemSelection* callback_return_value = miqt_exec_callback_QAbstractProxyModel_mapSelectionToSource(this, handle__mapSelectionToSource, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QItemSelection* virtualbase_mapSelectionToSource(QItemSelection* selection) const { return new QItemSelection(QAbstractProxyModel::mapSelectionToSource(*selection)); } // cgo.Handle value for overwritten implementation intptr_t handle__mapSelectionFromSource = 0; // Subclass to allow providing a Go implementation virtual QItemSelection mapSelectionFromSource(const QItemSelection& selection) const override { if (handle__mapSelectionFromSource == 0) { return QAbstractProxyModel::mapSelectionFromSource(selection); } const QItemSelection& selection_ret = selection; // Cast returned reference into pointer QItemSelection* sigval1 = const_cast(&selection_ret); QItemSelection* callback_return_value = miqt_exec_callback_QAbstractProxyModel_mapSelectionFromSource(this, handle__mapSelectionFromSource, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QItemSelection* virtualbase_mapSelectionFromSource(QItemSelection* selection) const { return new QItemSelection(QAbstractProxyModel::mapSelectionFromSource(*selection)); } // 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 QAbstractProxyModel::submit(); } bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_submit(this, handle__submit); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_submit() { return QAbstractProxyModel::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) { QAbstractProxyModel::revert(); return; } miqt_exec_callback_QAbstractProxyModel_revert(this, handle__revert); } // Wrapper to allow calling protected method void virtualbase_revert() { QAbstractProxyModel::revert(); } // cgo.Handle value for overwritten implementation intptr_t handle__data = 0; // Subclass to allow providing a Go implementation virtual QVariant data(const QModelIndex& proxyIndex, int role) const override { if (handle__data == 0) { return QAbstractProxyModel::data(proxyIndex, role); } const QModelIndex& proxyIndex_ret = proxyIndex; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&proxyIndex_ret); int sigval2 = role; QVariant* callback_return_value = miqt_exec_callback_QAbstractProxyModel_data(this, handle__data, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QVariant* virtualbase_data(QModelIndex* proxyIndex, int role) const { return new QVariant(QAbstractProxyModel::data(*proxyIndex, static_cast(role))); } // 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 QAbstractProxyModel::headerData(section, orientation, role); } int sigval1 = section; Qt::Orientation orientation_ret = orientation; int sigval2 = static_cast(orientation_ret); int sigval3 = role; QVariant* callback_return_value = miqt_exec_callback_QAbstractProxyModel_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(QAbstractProxyModel::headerData(static_cast(section), static_cast(orientation), static_cast(role))); } // cgo.Handle value for overwritten implementation intptr_t handle__itemData = 0; // Subclass to allow providing a Go implementation virtual QMap itemData(const QModelIndex& index) const override { if (handle__itemData == 0) { return QAbstractProxyModel::itemData(index); } const QModelIndex& index_ret = index; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&index_ret); struct miqt_map /* of int to QVariant* */ callback_return_value = miqt_exec_callback_QAbstractProxyModel_itemData(this, handle__itemData, sigval1); QMap callback_return_value_QMap; int* callback_return_value_karr = static_cast(callback_return_value.keys); QVariant** callback_return_value_varr = static_cast(callback_return_value.values); for(size_t i = 0; i < callback_return_value.len; ++i) { callback_return_value_QMap[static_cast(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 _ret = QAbstractProxyModel::itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); QVariant** _varr = static_cast(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(_karr); _out.values = static_cast(_varr); return _out; } // 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 QAbstractProxyModel::flags(index); } const QModelIndex& index_ret = index; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&index_ret); int callback_return_value = miqt_exec_callback_QAbstractProxyModel_flags(this, handle__flags, sigval1); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_flags(QModelIndex* index) const { Qt::ItemFlags _ret = QAbstractProxyModel::flags(*index); return static_cast(_ret); } // 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 QAbstractProxyModel::setData(index, value, role); } const QModelIndex& index_ret = index; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&index_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval2 = const_cast(&value_ret); int sigval3 = role; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::setData(*index, *value, static_cast(role)); } // 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& roles) override { if (handle__setItemData == 0) { return QAbstractProxyModel::setItemData(index, roles); } const QModelIndex& index_ret = index; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&index_ret); const QMap& roles_ret = roles; // Convert QMap<> from C++ memory to manually-managed C memory int* roles_karr = static_cast(malloc(sizeof(int) * roles_ret.size())); QVariant** roles_varr = static_cast(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(roles_karr); roles_out.values = static_cast(roles_varr); struct miqt_map /* of int to QVariant* */ sigval2 = roles_out; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); for(size_t i = 0; i < roles.len; ++i) { roles_QMap[static_cast(roles_karr[i])] = *(roles_varr[i]); } return QAbstractProxyModel::setItemData(*index, roles_QMap); } // 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 QAbstractProxyModel::setHeaderData(section, orientation, value, role); } int sigval1 = section; Qt::Orientation orientation_ret = orientation; int sigval2 = static_cast(orientation_ret); const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval3 = const_cast(&value_ret); int sigval4 = role; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::setHeaderData(static_cast(section), static_cast(orientation), *value, static_cast(role)); } // 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 QAbstractProxyModel::buddy(index); } const QModelIndex& index_ret = index; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&index_ret); QModelIndex* callback_return_value = miqt_exec_callback_QAbstractProxyModel_buddy(this, handle__buddy, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QModelIndex* virtualbase_buddy(QModelIndex* index) const { return new QModelIndex(QAbstractProxyModel::buddy(*index)); } // 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 QAbstractProxyModel::canFetchMore(parent); } const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_canFetchMore(this, handle__canFetchMore, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_canFetchMore(QModelIndex* parent) const { return QAbstractProxyModel::canFetchMore(*parent); } // 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) { QAbstractProxyModel::fetchMore(parent); return; } const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&parent_ret); miqt_exec_callback_QAbstractProxyModel_fetchMore(this, handle__fetchMore, sigval1); } // Wrapper to allow calling protected method void virtualbase_fetchMore(QModelIndex* parent) { QAbstractProxyModel::fetchMore(*parent); } // 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) { QAbstractProxyModel::sort(column, order); return; } int sigval1 = column; Qt::SortOrder order_ret = order; int sigval2 = static_cast(order_ret); miqt_exec_callback_QAbstractProxyModel_sort(this, handle__sort, sigval1, sigval2); } // Wrapper to allow calling protected method void virtualbase_sort(int column, int order) { QAbstractProxyModel::sort(static_cast(column), static_cast(order)); } // 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 QAbstractProxyModel::span(index); } const QModelIndex& index_ret = index; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&index_ret); QSize* callback_return_value = miqt_exec_callback_QAbstractProxyModel_span(this, handle__span, sigval1); return *callback_return_value; } // Wrapper to allow calling protected method QSize* virtualbase_span(QModelIndex* index) const { return new QSize(QAbstractProxyModel::span(*index)); } // 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 QAbstractProxyModel::hasChildren(parent); } const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_hasChildren(this, handle__hasChildren, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_hasChildren(QModelIndex* parent) const { return QAbstractProxyModel::hasChildren(*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 QAbstractProxyModel::sibling(row, column, idx); } int sigval1 = row; int sigval2 = column; const QModelIndex& idx_ret = idx; // Cast returned reference into pointer QModelIndex* sigval3 = const_cast(&idx_ret); QModelIndex* callback_return_value = miqt_exec_callback_QAbstractProxyModel_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(QAbstractProxyModel::sibling(static_cast(row), static_cast(column), *idx)); } // 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 QAbstractProxyModel::mimeData(indexes); } const QModelIndexList& indexes_ret = indexes; // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** indexes_arr = static_cast(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(indexes_arr); struct miqt_array /* of QModelIndex* */ sigval1 = indexes_out; QMimeData* callback_return_value = miqt_exec_callback_QAbstractProxyModel_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(indexes.data); for(size_t i = 0; i < indexes.len; ++i) { indexes_QList.push_back(*(indexes_arr[i])); } return QAbstractProxyModel::mimeData(indexes_QList); } // 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 QAbstractProxyModel::canDropMimeData(data, action, row, column, parent); } QMimeData* sigval1 = (QMimeData*) data; Qt::DropAction action_ret = action; int sigval2 = static_cast(action_ret); int sigval3 = row; int sigval4 = column; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval5 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::canDropMimeData(data, static_cast(action), static_cast(row), static_cast(column), *parent); } // 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 QAbstractProxyModel::dropMimeData(data, action, row, column, parent); } QMimeData* sigval1 = (QMimeData*) data; Qt::DropAction action_ret = action; int sigval2 = static_cast(action_ret); int sigval3 = row; int sigval4 = column; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval5 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::dropMimeData(data, static_cast(action), static_cast(row), static_cast(column), *parent); } // 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 QAbstractProxyModel::mimeTypes(); } struct miqt_array /* of struct miqt_string */ callback_return_value = miqt_exec_callback_QAbstractProxyModel_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(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 = QAbstractProxyModel::mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(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(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(_arr); return _out; } // 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 QAbstractProxyModel::supportedDragActions(); } int callback_return_value = miqt_exec_callback_QAbstractProxyModel_supportedDragActions(this, handle__supportedDragActions); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_supportedDragActions() const { Qt::DropActions _ret = QAbstractProxyModel::supportedDragActions(); return static_cast(_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 QAbstractProxyModel::supportedDropActions(); } int callback_return_value = miqt_exec_callback_QAbstractProxyModel_supportedDropActions(this, handle__supportedDropActions); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_supportedDropActions() const { Qt::DropActions _ret = QAbstractProxyModel::supportedDropActions(); return static_cast(_ret); } // 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 QModelIndex(); // Pure virtual, there is no base we can call } int sigval1 = row; int sigval2 = column; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval3 = const_cast(&parent_ret); QModelIndex* callback_return_value = miqt_exec_callback_QAbstractProxyModel_index(this, handle__index, sigval1, sigval2, sigval3); return *callback_return_value; } // 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 QModelIndex(); // Pure virtual, there is no base we can call } const QModelIndex& child_ret = child; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&child_ret); QModelIndex* callback_return_value = miqt_exec_callback_QAbstractProxyModel_parent(this, handle__parent, sigval1); return *callback_return_value; } // 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 0; // Pure virtual, there is no base we can call } const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&parent_ret); int callback_return_value = miqt_exec_callback_QAbstractProxyModel_rowCount(this, handle__rowCount, sigval1); return static_cast(callback_return_value); } // 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 0; // Pure virtual, there is no base we can call } const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&parent_ret); int callback_return_value = miqt_exec_callback_QAbstractProxyModel_columnCount(this, handle__columnCount, sigval1); return static_cast(callback_return_value); } // 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 QAbstractProxyModel::insertRows(row, count, parent); } int sigval1 = row; int sigval2 = count; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval3 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::insertRows(static_cast(row), static_cast(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 QAbstractProxyModel::insertColumns(column, count, parent); } int sigval1 = column; int sigval2 = count; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval3 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::insertColumns(static_cast(column), static_cast(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 QAbstractProxyModel::removeRows(row, count, parent); } int sigval1 = row; int sigval2 = count; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval3 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::removeRows(static_cast(row), static_cast(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 QAbstractProxyModel::removeColumns(column, count, parent); } int sigval1 = column; int sigval2 = count; const QModelIndex& parent_ret = parent; // Cast returned reference into pointer QModelIndex* sigval3 = const_cast(&parent_ret); bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::removeColumns(static_cast(column), static_cast(count), *parent); } // 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 QAbstractProxyModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); } const QModelIndex& sourceParent_ret = sourceParent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&sourceParent_ret); int sigval2 = sourceRow; int sigval3 = count; const QModelIndex& destinationParent_ret = destinationParent; // Cast returned reference into pointer QModelIndex* sigval4 = const_cast(&destinationParent_ret); int sigval5 = destinationChild; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::moveRows(*sourceParent, static_cast(sourceRow), static_cast(count), *destinationParent, static_cast(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 QAbstractProxyModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); } const QModelIndex& sourceParent_ret = sourceParent; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&sourceParent_ret); int sigval2 = sourceColumn; int sigval3 = count; const QModelIndex& destinationParent_ret = destinationParent; // Cast returned reference into pointer QModelIndex* sigval4 = const_cast(&destinationParent_ret); int sigval5 = destinationChild; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_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 QAbstractProxyModel::moveColumns(*sourceParent, static_cast(sourceColumn), static_cast(count), *destinationParent, static_cast(destinationChild)); } // 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 QAbstractProxyModel::match(start, role, value, hits, flags); } const QModelIndex& start_ret = start; // Cast returned reference into pointer QModelIndex* sigval1 = const_cast(&start_ret); int sigval2 = role; const QVariant& value_ret = value; // Cast returned reference into pointer QVariant* sigval3 = const_cast(&value_ret); int sigval4 = hits; Qt::MatchFlags flags_ret = flags; int sigval5 = static_cast(flags_ret); struct miqt_array /* of QModelIndex* */ callback_return_value = miqt_exec_callback_QAbstractProxyModel_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(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 = QAbstractProxyModel::match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(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(_arr); return _out; } // cgo.Handle value for overwritten implementation intptr_t handle__roleNames = 0; // Subclass to allow providing a Go implementation virtual QHash roleNames() const override { if (handle__roleNames == 0) { return QAbstractProxyModel::roleNames(); } struct miqt_map /* of int to struct miqt_string */ callback_return_value = miqt_exec_callback_QAbstractProxyModel_roleNames(this, handle__roleNames); QHash callback_return_value_QMap; callback_return_value_QMap.reserve(callback_return_value.len); int* callback_return_value_karr = static_cast(callback_return_value.keys); struct miqt_string* callback_return_value_varr = static_cast(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(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 _ret = QAbstractProxyModel::roleNames(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); struct miqt_string* _varr = static_cast(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(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(_karr); _out.values = static_cast(_varr); return _out; } // 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 QAbstractProxyModel::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_event(this, handle__event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_event(QEvent* event) { return QAbstractProxyModel::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 QAbstractProxyModel::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QAbstractProxyModel_eventFilter(this, handle__eventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_eventFilter(QObject* watched, QEvent* event) { return QAbstractProxyModel::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) { QAbstractProxyModel::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QAbstractProxyModel_timerEvent(this, handle__timerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_timerEvent(QTimerEvent* event) { QAbstractProxyModel::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) { QAbstractProxyModel::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QAbstractProxyModel_childEvent(this, handle__childEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_childEvent(QChildEvent* event) { QAbstractProxyModel::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) { QAbstractProxyModel::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QAbstractProxyModel_customEvent(this, handle__customEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_customEvent(QEvent* event) { QAbstractProxyModel::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) { QAbstractProxyModel::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QAbstractProxyModel_connectNotify(this, handle__connectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_connectNotify(QMetaMethod* signal) { QAbstractProxyModel::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) { QAbstractProxyModel::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QAbstractProxyModel_disconnectNotify(this, handle__disconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_disconnectNotify(QMetaMethod* signal) { QAbstractProxyModel::disconnectNotify(*signal); } }; QAbstractProxyModel* QAbstractProxyModel_new() { return new MiqtVirtualQAbstractProxyModel(); } QAbstractProxyModel* QAbstractProxyModel_new2(QObject* parent) { return new MiqtVirtualQAbstractProxyModel(parent); } void QAbstractProxyModel_virtbase(QAbstractProxyModel* src, QAbstractItemModel** outptr_QAbstractItemModel) { *outptr_QAbstractItemModel = static_cast(src); } QMetaObject* QAbstractProxyModel_metaObject(const QAbstractProxyModel* self) { return (QMetaObject*) self->metaObject(); } void* QAbstractProxyModel_metacast(QAbstractProxyModel* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QAbstractProxyModel_tr(const char* s) { QString _ret = QAbstractProxyModel::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; } struct miqt_string QAbstractProxyModel_trUtf8(const char* s) { QString _ret = QAbstractProxyModel::trUtf8(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 QAbstractProxyModel_setSourceModel(QAbstractProxyModel* self, QAbstractItemModel* sourceModel) { self->setSourceModel(sourceModel); } QAbstractItemModel* QAbstractProxyModel_sourceModel(const QAbstractProxyModel* self) { return self->sourceModel(); } QModelIndex* QAbstractProxyModel_mapToSource(const QAbstractProxyModel* self, QModelIndex* proxyIndex) { return new QModelIndex(self->mapToSource(*proxyIndex)); } QModelIndex* QAbstractProxyModel_mapFromSource(const QAbstractProxyModel* self, QModelIndex* sourceIndex) { return new QModelIndex(self->mapFromSource(*sourceIndex)); } QItemSelection* QAbstractProxyModel_mapSelectionToSource(const QAbstractProxyModel* self, QItemSelection* selection) { return new QItemSelection(self->mapSelectionToSource(*selection)); } QItemSelection* QAbstractProxyModel_mapSelectionFromSource(const QAbstractProxyModel* self, QItemSelection* selection) { return new QItemSelection(self->mapSelectionFromSource(*selection)); } bool QAbstractProxyModel_submit(QAbstractProxyModel* self) { return self->submit(); } void QAbstractProxyModel_revert(QAbstractProxyModel* self) { self->revert(); } QVariant* QAbstractProxyModel_data(const QAbstractProxyModel* self, QModelIndex* proxyIndex, int role) { return new QVariant(self->data(*proxyIndex, static_cast(role))); } QVariant* QAbstractProxyModel_headerData(const QAbstractProxyModel* self, int section, int orientation, int role) { return new QVariant(self->headerData(static_cast(section), static_cast(orientation), static_cast(role))); } struct miqt_map /* of int to QVariant* */ QAbstractProxyModel_itemData(const QAbstractProxyModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); QVariant** _varr = static_cast(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(_karr); _out.values = static_cast(_varr); return _out; } int QAbstractProxyModel_flags(const QAbstractProxyModel* self, QModelIndex* index) { Qt::ItemFlags _ret = self->flags(*index); return static_cast(_ret); } bool QAbstractProxyModel_setData(QAbstractProxyModel* self, QModelIndex* index, QVariant* value, int role) { return self->setData(*index, *value, static_cast(role)); } bool QAbstractProxyModel_setItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); for(size_t i = 0; i < roles.len; ++i) { roles_QMap[static_cast(roles_karr[i])] = *(roles_varr[i]); } return self->setItemData(*index, roles_QMap); } bool QAbstractProxyModel_setHeaderData(QAbstractProxyModel* self, int section, int orientation, QVariant* value, int role) { return self->setHeaderData(static_cast(section), static_cast(orientation), *value, static_cast(role)); } QModelIndex* QAbstractProxyModel_buddy(const QAbstractProxyModel* self, QModelIndex* index) { return new QModelIndex(self->buddy(*index)); } bool QAbstractProxyModel_canFetchMore(const QAbstractProxyModel* self, QModelIndex* parent) { return self->canFetchMore(*parent); } void QAbstractProxyModel_fetchMore(QAbstractProxyModel* self, QModelIndex* parent) { self->fetchMore(*parent); } void QAbstractProxyModel_sort(QAbstractProxyModel* self, int column, int order) { self->sort(static_cast(column), static_cast(order)); } QSize* QAbstractProxyModel_span(const QAbstractProxyModel* self, QModelIndex* index) { return new QSize(self->span(*index)); } bool QAbstractProxyModel_hasChildren(const QAbstractProxyModel* self, QModelIndex* parent) { return self->hasChildren(*parent); } QModelIndex* QAbstractProxyModel_sibling(const QAbstractProxyModel* self, int row, int column, QModelIndex* idx) { return new QModelIndex(self->sibling(static_cast(row), static_cast(column), *idx)); } QMimeData* QAbstractProxyModel_mimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); for(size_t i = 0; i < indexes.len; ++i) { indexes_QList.push_back(*(indexes_arr[i])); } return self->mimeData(indexes_QList); } bool QAbstractProxyModel_canDropMimeData(const QAbstractProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) { return self->canDropMimeData(data, static_cast(action), static_cast(row), static_cast(column), *parent); } bool QAbstractProxyModel_dropMimeData(QAbstractProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) { return self->dropMimeData(data, static_cast(action), static_cast(row), static_cast(column), *parent); } struct miqt_array /* of struct miqt_string */ QAbstractProxyModel_mimeTypes(const QAbstractProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(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(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(_arr); return _out; } int QAbstractProxyModel_supportedDragActions(const QAbstractProxyModel* self) { Qt::DropActions _ret = self->supportedDragActions(); return static_cast(_ret); } int QAbstractProxyModel_supportedDropActions(const QAbstractProxyModel* self) { Qt::DropActions _ret = self->supportedDropActions(); return static_cast(_ret); } struct miqt_string QAbstractProxyModel_tr2(const char* s, const char* c) { QString _ret = QAbstractProxyModel::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 QAbstractProxyModel_tr3(const char* s, const char* c, int n) { QString _ret = QAbstractProxyModel::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; } struct miqt_string QAbstractProxyModel_trUtf82(const char* s, const char* c) { QString _ret = QAbstractProxyModel::trUtf8(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 QAbstractProxyModel_trUtf83(const char* s, const char* c, int n) { QString _ret = QAbstractProxyModel::trUtf8(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; } bool QAbstractProxyModel_override_virtual_setSourceModel(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__setSourceModel = slot; return true; } void QAbstractProxyModel_virtualbase_setSourceModel(void* self, QAbstractItemModel* sourceModel) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_setSourceModel(sourceModel); } bool QAbstractProxyModel_override_virtual_mapToSource(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__mapToSource = slot; return true; } bool QAbstractProxyModel_override_virtual_mapFromSource(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__mapFromSource = slot; return true; } bool QAbstractProxyModel_override_virtual_mapSelectionToSource(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__mapSelectionToSource = slot; return true; } QItemSelection* QAbstractProxyModel_virtualbase_mapSelectionToSource(const void* self, QItemSelection* selection) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_mapSelectionToSource(selection); } bool QAbstractProxyModel_override_virtual_mapSelectionFromSource(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__mapSelectionFromSource = slot; return true; } QItemSelection* QAbstractProxyModel_virtualbase_mapSelectionFromSource(const void* self, QItemSelection* selection) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_mapSelectionFromSource(selection); } bool QAbstractProxyModel_override_virtual_submit(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__submit = slot; return true; } bool QAbstractProxyModel_virtualbase_submit(void* self) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_submit(); } bool QAbstractProxyModel_override_virtual_revert(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__revert = slot; return true; } void QAbstractProxyModel_virtualbase_revert(void* self) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_revert(); } bool QAbstractProxyModel_override_virtual_data(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__data = slot; return true; } QVariant* QAbstractProxyModel_virtualbase_data(const void* self, QModelIndex* proxyIndex, int role) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_data(proxyIndex, role); } bool QAbstractProxyModel_override_virtual_headerData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__headerData = slot; return true; } QVariant* QAbstractProxyModel_virtualbase_headerData(const void* self, int section, int orientation, int role) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_headerData(section, orientation, role); } bool QAbstractProxyModel_override_virtual_itemData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__itemData = slot; return true; } struct miqt_map /* of int to QVariant* */ QAbstractProxyModel_virtualbase_itemData(const void* self, QModelIndex* index) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_itemData(index); } bool QAbstractProxyModel_override_virtual_flags(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__flags = slot; return true; } int QAbstractProxyModel_virtualbase_flags(const void* self, QModelIndex* index) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_flags(index); } bool QAbstractProxyModel_override_virtual_setData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__setData = slot; return true; } bool QAbstractProxyModel_virtualbase_setData(void* self, QModelIndex* index, QVariant* value, int role) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_setData(index, value, role); } bool QAbstractProxyModel_override_virtual_setItemData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__setItemData = slot; return true; } bool QAbstractProxyModel_virtualbase_setItemData(void* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_setItemData(index, roles); } bool QAbstractProxyModel_override_virtual_setHeaderData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__setHeaderData = slot; return true; } bool QAbstractProxyModel_virtualbase_setHeaderData(void* self, int section, int orientation, QVariant* value, int role) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_setHeaderData(section, orientation, value, role); } bool QAbstractProxyModel_override_virtual_buddy(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__buddy = slot; return true; } QModelIndex* QAbstractProxyModel_virtualbase_buddy(const void* self, QModelIndex* index) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_buddy(index); } bool QAbstractProxyModel_override_virtual_canFetchMore(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__canFetchMore = slot; return true; } bool QAbstractProxyModel_virtualbase_canFetchMore(const void* self, QModelIndex* parent) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_canFetchMore(parent); } bool QAbstractProxyModel_override_virtual_fetchMore(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__fetchMore = slot; return true; } void QAbstractProxyModel_virtualbase_fetchMore(void* self, QModelIndex* parent) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_fetchMore(parent); } bool QAbstractProxyModel_override_virtual_sort(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__sort = slot; return true; } void QAbstractProxyModel_virtualbase_sort(void* self, int column, int order) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_sort(column, order); } bool QAbstractProxyModel_override_virtual_span(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__span = slot; return true; } QSize* QAbstractProxyModel_virtualbase_span(const void* self, QModelIndex* index) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_span(index); } bool QAbstractProxyModel_override_virtual_hasChildren(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__hasChildren = slot; return true; } bool QAbstractProxyModel_virtualbase_hasChildren(const void* self, QModelIndex* parent) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_hasChildren(parent); } bool QAbstractProxyModel_override_virtual_sibling(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__sibling = slot; return true; } QModelIndex* QAbstractProxyModel_virtualbase_sibling(const void* self, int row, int column, QModelIndex* idx) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_sibling(row, column, idx); } bool QAbstractProxyModel_override_virtual_mimeData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__mimeData = slot; return true; } QMimeData* QAbstractProxyModel_virtualbase_mimeData(const void* self, struct miqt_array /* of QModelIndex* */ indexes) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_mimeData(indexes); } bool QAbstractProxyModel_override_virtual_canDropMimeData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__canDropMimeData = slot; return true; } bool QAbstractProxyModel_virtualbase_canDropMimeData(const void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_canDropMimeData(data, action, row, column, parent); } bool QAbstractProxyModel_override_virtual_dropMimeData(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__dropMimeData = slot; return true; } bool QAbstractProxyModel_virtualbase_dropMimeData(void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_dropMimeData(data, action, row, column, parent); } bool QAbstractProxyModel_override_virtual_mimeTypes(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__mimeTypes = slot; return true; } struct miqt_array /* of struct miqt_string */ QAbstractProxyModel_virtualbase_mimeTypes(const void* self) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_mimeTypes(); } bool QAbstractProxyModel_override_virtual_supportedDragActions(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__supportedDragActions = slot; return true; } int QAbstractProxyModel_virtualbase_supportedDragActions(const void* self) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_supportedDragActions(); } bool QAbstractProxyModel_override_virtual_supportedDropActions(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__supportedDropActions = slot; return true; } int QAbstractProxyModel_virtualbase_supportedDropActions(const void* self) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_supportedDropActions(); } bool QAbstractProxyModel_override_virtual_index(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__index = slot; return true; } bool QAbstractProxyModel_override_virtual_parent(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__parent = slot; return true; } bool QAbstractProxyModel_override_virtual_rowCount(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__rowCount = slot; return true; } bool QAbstractProxyModel_override_virtual_columnCount(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__columnCount = slot; return true; } bool QAbstractProxyModel_override_virtual_insertRows(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__insertRows = slot; return true; } bool QAbstractProxyModel_virtualbase_insertRows(void* self, int row, int count, QModelIndex* parent) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_insertRows(row, count, parent); } bool QAbstractProxyModel_override_virtual_insertColumns(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__insertColumns = slot; return true; } bool QAbstractProxyModel_virtualbase_insertColumns(void* self, int column, int count, QModelIndex* parent) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_insertColumns(column, count, parent); } bool QAbstractProxyModel_override_virtual_removeRows(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__removeRows = slot; return true; } bool QAbstractProxyModel_virtualbase_removeRows(void* self, int row, int count, QModelIndex* parent) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_removeRows(row, count, parent); } bool QAbstractProxyModel_override_virtual_removeColumns(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__removeColumns = slot; return true; } bool QAbstractProxyModel_virtualbase_removeColumns(void* self, int column, int count, QModelIndex* parent) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_removeColumns(column, count, parent); } bool QAbstractProxyModel_override_virtual_moveRows(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__moveRows = slot; return true; } bool QAbstractProxyModel_virtualbase_moveRows(void* self, QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); } bool QAbstractProxyModel_override_virtual_moveColumns(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__moveColumns = slot; return true; } bool QAbstractProxyModel_virtualbase_moveColumns(void* self, QModelIndex* sourceParent, int sourceColumn, int count, QModelIndex* destinationParent, int destinationChild) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); } bool QAbstractProxyModel_override_virtual_match(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__match = slot; return true; } struct miqt_array /* of QModelIndex* */ QAbstractProxyModel_virtualbase_match(const void* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_match(start, role, value, hits, flags); } bool QAbstractProxyModel_override_virtual_roleNames(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__roleNames = slot; return true; } struct miqt_map /* of int to struct miqt_string */ QAbstractProxyModel_virtualbase_roleNames(const void* self) { return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_roleNames(); } bool QAbstractProxyModel_override_virtual_event(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__event = slot; return true; } bool QAbstractProxyModel_virtualbase_event(void* self, QEvent* event) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_event(event); } bool QAbstractProxyModel_override_virtual_eventFilter(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__eventFilter = slot; return true; } bool QAbstractProxyModel_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_eventFilter(watched, event); } bool QAbstractProxyModel_override_virtual_timerEvent(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__timerEvent = slot; return true; } void QAbstractProxyModel_virtualbase_timerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_timerEvent(event); } bool QAbstractProxyModel_override_virtual_childEvent(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__childEvent = slot; return true; } void QAbstractProxyModel_virtualbase_childEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_childEvent(event); } bool QAbstractProxyModel_override_virtual_customEvent(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__customEvent = slot; return true; } void QAbstractProxyModel_virtualbase_customEvent(void* self, QEvent* event) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_customEvent(event); } bool QAbstractProxyModel_override_virtual_connectNotify(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__connectNotify = slot; return true; } void QAbstractProxyModel_virtualbase_connectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_connectNotify(signal); } bool QAbstractProxyModel_override_virtual_disconnectNotify(void* self, intptr_t slot) { MiqtVirtualQAbstractProxyModel* self_cast = dynamic_cast( (QAbstractProxyModel*)(self) ); if (self_cast == nullptr) { return false; } self_cast->handle__disconnectNotify = slot; return true; } void QAbstractProxyModel_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_disconnectNotify(signal); } void QAbstractProxyModel_delete(QAbstractProxyModel* self) { delete self; }