#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "qtablewidget.h" #include "gen_qtablewidget.h" extern "C" { extern void miqt_exec_callback(void* cb, int argc, void* argv); } QTableWidgetSelectionRange* QTableWidgetSelectionRange_new() { return new QTableWidgetSelectionRange(); } QTableWidgetSelectionRange* QTableWidgetSelectionRange_new2(int top, int left, int bottom, int right) { return new QTableWidgetSelectionRange(static_cast(top), static_cast(left), static_cast(bottom), static_cast(right)); } QTableWidgetSelectionRange* QTableWidgetSelectionRange_new3(QTableWidgetSelectionRange* other) { return new QTableWidgetSelectionRange(*other); } void QTableWidgetSelectionRange_OperatorAssign(QTableWidgetSelectionRange* self, QTableWidgetSelectionRange* other) { self->operator=(*other); } int QTableWidgetSelectionRange_TopRow(const QTableWidgetSelectionRange* self) { return self->topRow(); } int QTableWidgetSelectionRange_BottomRow(const QTableWidgetSelectionRange* self) { return self->bottomRow(); } int QTableWidgetSelectionRange_LeftColumn(const QTableWidgetSelectionRange* self) { return self->leftColumn(); } int QTableWidgetSelectionRange_RightColumn(const QTableWidgetSelectionRange* self) { return self->rightColumn(); } int QTableWidgetSelectionRange_RowCount(const QTableWidgetSelectionRange* self) { return self->rowCount(); } int QTableWidgetSelectionRange_ColumnCount(const QTableWidgetSelectionRange* self) { return self->columnCount(); } void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self) { delete self; } QTableWidgetItem* QTableWidgetItem_new() { return new QTableWidgetItem(); } QTableWidgetItem* QTableWidgetItem_new2(const char* text, size_t text_Strlen) { QString text_QString = QString::fromUtf8(text, text_Strlen); return new QTableWidgetItem(text_QString); } QTableWidgetItem* QTableWidgetItem_new3(QIcon* icon, const char* text, size_t text_Strlen) { QString text_QString = QString::fromUtf8(text, text_Strlen); return new QTableWidgetItem(*icon, text_QString); } QTableWidgetItem* QTableWidgetItem_new4(QTableWidgetItem* other) { return new QTableWidgetItem(*other); } QTableWidgetItem* QTableWidgetItem_new5(int typeVal) { return new QTableWidgetItem(static_cast(typeVal)); } QTableWidgetItem* QTableWidgetItem_new6(const char* text, size_t text_Strlen, int typeVal) { QString text_QString = QString::fromUtf8(text, text_Strlen); return new QTableWidgetItem(text_QString, static_cast(typeVal)); } QTableWidgetItem* QTableWidgetItem_new7(QIcon* icon, const char* text, size_t text_Strlen, int typeVal) { QString text_QString = QString::fromUtf8(text, text_Strlen); return new QTableWidgetItem(*icon, text_QString, static_cast(typeVal)); } QTableWidgetItem* QTableWidgetItem_Clone(const QTableWidgetItem* self) { return self->clone(); } QTableWidget* QTableWidgetItem_TableWidget(const QTableWidgetItem* self) { return self->tableWidget(); } int QTableWidgetItem_Row(const QTableWidgetItem* self) { return self->row(); } int QTableWidgetItem_Column(const QTableWidgetItem* self) { return self->column(); } void QTableWidgetItem_SetSelected(QTableWidgetItem* self, bool selectVal) { self->setSelected(selectVal); } bool QTableWidgetItem_IsSelected(const QTableWidgetItem* self) { return self->isSelected(); } int QTableWidgetItem_Flags(const QTableWidgetItem* self) { Qt::ItemFlags ret = self->flags(); return static_cast(ret); } void QTableWidgetItem_SetFlags(QTableWidgetItem* self, int flags) { self->setFlags(static_cast(flags)); } void QTableWidgetItem_Text(const QTableWidgetItem* self, char** _out, int* _out_Strlen) { 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(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidgetItem_SetText(QTableWidgetItem* self, const char* text, size_t text_Strlen) { QString text_QString = QString::fromUtf8(text, text_Strlen); self->setText(text_QString); } QIcon* QTableWidgetItem_Icon(const QTableWidgetItem* self) { QIcon ret = self->icon(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QIcon(ret)); } void QTableWidgetItem_SetIcon(QTableWidgetItem* self, QIcon* icon) { self->setIcon(*icon); } void QTableWidgetItem_StatusTip(const QTableWidgetItem* self, char** _out, int* _out_Strlen) { 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(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidgetItem_SetStatusTip(QTableWidgetItem* self, const char* statusTip, size_t statusTip_Strlen) { QString statusTip_QString = QString::fromUtf8(statusTip, statusTip_Strlen); self->setStatusTip(statusTip_QString); } void QTableWidgetItem_ToolTip(const QTableWidgetItem* self, char** _out, int* _out_Strlen) { 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(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidgetItem_SetToolTip(QTableWidgetItem* self, const char* toolTip, size_t toolTip_Strlen) { QString toolTip_QString = QString::fromUtf8(toolTip, toolTip_Strlen); self->setToolTip(toolTip_QString); } void QTableWidgetItem_WhatsThis(const QTableWidgetItem* self, char** _out, int* _out_Strlen) { 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(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidgetItem_SetWhatsThis(QTableWidgetItem* self, const char* whatsThis, size_t whatsThis_Strlen) { QString whatsThis_QString = QString::fromUtf8(whatsThis, whatsThis_Strlen); self->setWhatsThis(whatsThis_QString); } QFont* QTableWidgetItem_Font(const QTableWidgetItem* self) { QFont ret = self->font(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QFont(ret)); } void QTableWidgetItem_SetFont(QTableWidgetItem* self, QFont* font) { self->setFont(*font); } int QTableWidgetItem_TextAlignment(const QTableWidgetItem* self) { return self->textAlignment(); } void QTableWidgetItem_SetTextAlignment(QTableWidgetItem* self, int alignment) { self->setTextAlignment(static_cast(alignment)); } QColor* QTableWidgetItem_BackgroundColor(const QTableWidgetItem* self) { QColor ret = self->backgroundColor(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QColor(ret)); } void QTableWidgetItem_SetBackgroundColor(QTableWidgetItem* self, QColor* color) { self->setBackgroundColor(*color); } QBrush* QTableWidgetItem_Background(const QTableWidgetItem* self) { QBrush ret = self->background(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QBrush(ret)); } void QTableWidgetItem_SetBackground(QTableWidgetItem* self, QBrush* brush) { self->setBackground(*brush); } QColor* QTableWidgetItem_TextColor(const QTableWidgetItem* self) { QColor ret = self->textColor(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QColor(ret)); } void QTableWidgetItem_SetTextColor(QTableWidgetItem* self, QColor* color) { self->setTextColor(*color); } QBrush* QTableWidgetItem_Foreground(const QTableWidgetItem* self) { QBrush ret = self->foreground(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QBrush(ret)); } void QTableWidgetItem_SetForeground(QTableWidgetItem* self, QBrush* brush) { self->setForeground(*brush); } uintptr_t QTableWidgetItem_CheckState(const QTableWidgetItem* self) { Qt::CheckState ret = self->checkState(); return static_cast(ret); } void QTableWidgetItem_SetCheckState(QTableWidgetItem* self, uintptr_t state) { self->setCheckState(static_cast(state)); } QSize* QTableWidgetItem_SizeHint(const QTableWidgetItem* self) { QSize ret = self->sizeHint(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSize(ret)); } void QTableWidgetItem_SetSizeHint(QTableWidgetItem* self, QSize* size) { self->setSizeHint(*size); } QVariant* QTableWidgetItem_Data(const QTableWidgetItem* self, int role) { QVariant ret = self->data(static_cast(role)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QVariant(ret)); } void QTableWidgetItem_SetData(QTableWidgetItem* self, int role, QVariant* value) { self->setData(static_cast(role), *value); } bool QTableWidgetItem_OperatorLesser(const QTableWidgetItem* self, QTableWidgetItem* other) { return self->operator<(*other); } void QTableWidgetItem_Read(QTableWidgetItem* self, QDataStream* in) { self->read(*in); } void QTableWidgetItem_Write(const QTableWidgetItem* self, QDataStream* out) { self->write(*out); } void QTableWidgetItem_OperatorAssign(QTableWidgetItem* self, QTableWidgetItem* other) { self->operator=(*other); } int QTableWidgetItem_Type(const QTableWidgetItem* self) { return self->type(); } void QTableWidgetItem_Delete(QTableWidgetItem* self) { delete self; } QTableWidget* QTableWidget_new() { return new QTableWidget(); } QTableWidget* QTableWidget_new2(int rows, int columns) { return new QTableWidget(static_cast(rows), static_cast(columns)); } QTableWidget* QTableWidget_new3(QWidget* parent) { return new QTableWidget(parent); } QTableWidget* QTableWidget_new4(int rows, int columns, QWidget* parent) { return new QTableWidget(static_cast(rows), static_cast(columns), parent); } QMetaObject* QTableWidget_MetaObject(const QTableWidget* self) { return (QMetaObject*) self->metaObject(); } void QTableWidget_Tr(const char* s, char** _out, int* _out_Strlen) { QString ret = QTableWidget::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidget_TrUtf8(const char* s, char** _out, int* _out_Strlen) { QString ret = QTableWidget::trUtf8(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidget_SetRowCount(QTableWidget* self, int rows) { self->setRowCount(static_cast(rows)); } int QTableWidget_RowCount(const QTableWidget* self) { return self->rowCount(); } void QTableWidget_SetColumnCount(QTableWidget* self, int columns) { self->setColumnCount(static_cast(columns)); } int QTableWidget_ColumnCount(const QTableWidget* self) { return self->columnCount(); } int QTableWidget_Row(const QTableWidget* self, QTableWidgetItem* item) { return self->row(item); } int QTableWidget_Column(const QTableWidget* self, QTableWidgetItem* item) { return self->column(item); } QTableWidgetItem* QTableWidget_Item(const QTableWidget* self, int row, int column) { return self->item(static_cast(row), static_cast(column)); } void QTableWidget_SetItem(QTableWidget* self, int row, int column, QTableWidgetItem* item) { self->setItem(static_cast(row), static_cast(column), item); } QTableWidgetItem* QTableWidget_TakeItem(QTableWidget* self, int row, int column) { return self->takeItem(static_cast(row), static_cast(column)); } QTableWidgetItem* QTableWidget_VerticalHeaderItem(const QTableWidget* self, int row) { return self->verticalHeaderItem(static_cast(row)); } void QTableWidget_SetVerticalHeaderItem(QTableWidget* self, int row, QTableWidgetItem* item) { self->setVerticalHeaderItem(static_cast(row), item); } QTableWidgetItem* QTableWidget_TakeVerticalHeaderItem(QTableWidget* self, int row) { return self->takeVerticalHeaderItem(static_cast(row)); } QTableWidgetItem* QTableWidget_HorizontalHeaderItem(const QTableWidget* self, int column) { return self->horizontalHeaderItem(static_cast(column)); } void QTableWidget_SetHorizontalHeaderItem(QTableWidget* self, int column, QTableWidgetItem* item) { self->setHorizontalHeaderItem(static_cast(column), item); } QTableWidgetItem* QTableWidget_TakeHorizontalHeaderItem(QTableWidget* self, int column) { return self->takeHorizontalHeaderItem(static_cast(column)); } void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, char** labels, uint64_t* labels_Lengths, size_t labels_len) { QList labels_QList; labels_QList.reserve(labels_len); for(size_t i = 0; i < labels_len; ++i) { labels_QList.push_back(QString::fromUtf8(labels[i], labels_Lengths[i])); } self->setVerticalHeaderLabels(labels_QList); } void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, char** labels, uint64_t* labels_Lengths, size_t labels_len) { QList labels_QList; labels_QList.reserve(labels_len); for(size_t i = 0; i < labels_len; ++i) { labels_QList.push_back(QString::fromUtf8(labels[i], labels_Lengths[i])); } self->setHorizontalHeaderLabels(labels_QList); } int QTableWidget_CurrentRow(const QTableWidget* self) { return self->currentRow(); } int QTableWidget_CurrentColumn(const QTableWidget* self) { return self->currentColumn(); } QTableWidgetItem* QTableWidget_CurrentItem(const QTableWidget* self) { return self->currentItem(); } void QTableWidget_SetCurrentItem(QTableWidget* self, QTableWidgetItem* item) { self->setCurrentItem(item); } void QTableWidget_SetCurrentItem2(QTableWidget* self, QTableWidgetItem* item, int command) { self->setCurrentItem(item, static_cast(command)); } void QTableWidget_SetCurrentCell(QTableWidget* self, int row, int column) { self->setCurrentCell(static_cast(row), static_cast(column)); } void QTableWidget_SetCurrentCell2(QTableWidget* self, int row, int column, int command) { self->setCurrentCell(static_cast(row), static_cast(column), static_cast(command)); } void QTableWidget_SortItems(QTableWidget* self, int column) { self->sortItems(static_cast(column)); } void QTableWidget_SetSortingEnabled(QTableWidget* self, bool enable) { self->setSortingEnabled(enable); } bool QTableWidget_IsSortingEnabled(const QTableWidget* self) { return self->isSortingEnabled(); } void QTableWidget_EditItem(QTableWidget* self, QTableWidgetItem* item) { self->editItem(item); } void QTableWidget_OpenPersistentEditor(QTableWidget* self, QTableWidgetItem* item) { self->openPersistentEditor(item); } void QTableWidget_ClosePersistentEditor(QTableWidget* self, QTableWidgetItem* item) { self->closePersistentEditor(item); } bool QTableWidget_IsPersistentEditorOpen(const QTableWidget* self, QTableWidgetItem* item) { return self->isPersistentEditorOpen(item); } QWidget* QTableWidget_CellWidget(const QTableWidget* self, int row, int column) { return self->cellWidget(static_cast(row), static_cast(column)); } void QTableWidget_SetCellWidget(QTableWidget* self, int row, int column, QWidget* widget) { self->setCellWidget(static_cast(row), static_cast(column), widget); } void QTableWidget_RemoveCellWidget(QTableWidget* self, int row, int column) { self->removeCellWidget(static_cast(row), static_cast(column)); } bool QTableWidget_IsItemSelected(const QTableWidget* self, QTableWidgetItem* item) { return self->isItemSelected(item); } void QTableWidget_SetItemSelected(QTableWidget* self, QTableWidgetItem* item, bool selectVal) { self->setItemSelected(item, selectVal); } void QTableWidget_SetRangeSelected(QTableWidget* self, QTableWidgetSelectionRange* rangeVal, bool selectVal) { self->setRangeSelected(*rangeVal, selectVal); } void QTableWidget_SelectedRanges(const QTableWidget* self, QTableWidgetSelectionRange*** _out, size_t* _out_len) { QList ret = self->selectedRanges(); // Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers QTableWidgetSelectionRange** __out = static_cast(malloc(sizeof(QTableWidgetSelectionRange**) * ret.length())); for (size_t i = 0, e = ret.length(); i < e; ++i) { __out[i] = new QTableWidgetSelectionRange(ret[i]); } *_out = __out; *_out_len = ret.length(); } void QTableWidget_SelectedItems(const QTableWidget* self, QTableWidgetItem*** _out, size_t* _out_len) { QList ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetItem** __out = static_cast(malloc(sizeof(QTableWidgetItem*) * ret.length())); for (size_t i = 0, e = ret.length(); i < e; ++i) { __out[i] = ret[i]; } *_out = __out; *_out_len = ret.length(); } void QTableWidget_FindItems(const QTableWidget* self, const char* text, size_t text_Strlen, int flags, QTableWidgetItem*** _out, size_t* _out_len) { QString text_QString = QString::fromUtf8(text, text_Strlen); QList ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetItem** __out = static_cast(malloc(sizeof(QTableWidgetItem*) * ret.length())); for (size_t i = 0, e = ret.length(); i < e; ++i) { __out[i] = ret[i]; } *_out = __out; *_out_len = ret.length(); } int QTableWidget_VisualRow(const QTableWidget* self, int logicalRow) { return self->visualRow(static_cast(logicalRow)); } int QTableWidget_VisualColumn(const QTableWidget* self, int logicalColumn) { return self->visualColumn(static_cast(logicalColumn)); } QTableWidgetItem* QTableWidget_ItemAt(const QTableWidget* self, QPoint* p) { return self->itemAt(*p); } QTableWidgetItem* QTableWidget_ItemAt2(const QTableWidget* self, int x, int y) { return self->itemAt(static_cast(x), static_cast(y)); } QRect* QTableWidget_VisualItemRect(const QTableWidget* self, QTableWidgetItem* item) { QRect ret = self->visualItemRect(item); // Copy-construct value returned type into heap-allocated copy return static_cast(new QRect(ret)); } QTableWidgetItem* QTableWidget_ItemPrototype(const QTableWidget* self) { return (QTableWidgetItem*) self->itemPrototype(); } void QTableWidget_SetItemPrototype(QTableWidget* self, QTableWidgetItem* item) { self->setItemPrototype(item); } void QTableWidget_ScrollToItem(QTableWidget* self, QTableWidgetItem* item) { self->scrollToItem(item); } void QTableWidget_InsertRow(QTableWidget* self, int row) { self->insertRow(static_cast(row)); } void QTableWidget_InsertColumn(QTableWidget* self, int column) { self->insertColumn(static_cast(column)); } void QTableWidget_RemoveRow(QTableWidget* self, int row) { self->removeRow(static_cast(row)); } void QTableWidget_RemoveColumn(QTableWidget* self, int column) { self->removeColumn(static_cast(column)); } void QTableWidget_Clear(QTableWidget* self) { self->clear(); } void QTableWidget_ClearContents(QTableWidget* self) { self->clearContents(); } void QTableWidget_ItemPressed(QTableWidget* self, QTableWidgetItem* item) { self->itemPressed(item); } void QTableWidget_connect_ItemPressed(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemPressed), self, [=](QTableWidgetItem* item) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_ItemClicked(QTableWidget* self, QTableWidgetItem* item) { self->itemClicked(item); } void QTableWidget_connect_ItemClicked(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemClicked), self, [=](QTableWidgetItem* item) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_ItemDoubleClicked(QTableWidget* self, QTableWidgetItem* item) { self->itemDoubleClicked(item); } void QTableWidget_connect_ItemDoubleClicked(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemDoubleClicked), self, [=](QTableWidgetItem* item) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_ItemActivated(QTableWidget* self, QTableWidgetItem* item) { self->itemActivated(item); } void QTableWidget_connect_ItemActivated(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemActivated), self, [=](QTableWidgetItem* item) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_ItemEntered(QTableWidget* self, QTableWidgetItem* item) { self->itemEntered(item); } void QTableWidget_connect_ItemEntered(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemEntered), self, [=](QTableWidgetItem* item) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_ItemChanged(QTableWidget* self, QTableWidgetItem* item) { self->itemChanged(item); } void QTableWidget_connect_ItemChanged(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemChanged), self, [=](QTableWidgetItem* item) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CurrentItemChanged(QTableWidget* self, QTableWidgetItem* current, QTableWidgetItem* previous) { self->currentItemChanged(current, previous); } void QTableWidget_connect_CurrentItemChanged(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::currentItemChanged), self, [=](QTableWidgetItem* current, QTableWidgetItem* previous) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_ItemSelectionChanged(QTableWidget* self) { self->itemSelectionChanged(); } void QTableWidget_connect_ItemSelectionChanged(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemSelectionChanged), self, [=]() { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CellPressed(QTableWidget* self, int row, int column) { self->cellPressed(static_cast(row), static_cast(column)); } void QTableWidget_connect_CellPressed(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellPressed), self, [=](int row, int column) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CellClicked(QTableWidget* self, int row, int column) { self->cellClicked(static_cast(row), static_cast(column)); } void QTableWidget_connect_CellClicked(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellClicked), self, [=](int row, int column) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CellDoubleClicked(QTableWidget* self, int row, int column) { self->cellDoubleClicked(static_cast(row), static_cast(column)); } void QTableWidget_connect_CellDoubleClicked(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellDoubleClicked), self, [=](int row, int column) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CellActivated(QTableWidget* self, int row, int column) { self->cellActivated(static_cast(row), static_cast(column)); } void QTableWidget_connect_CellActivated(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellActivated), self, [=](int row, int column) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CellEntered(QTableWidget* self, int row, int column) { self->cellEntered(static_cast(row), static_cast(column)); } void QTableWidget_connect_CellEntered(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellEntered), self, [=](int row, int column) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CellChanged(QTableWidget* self, int row, int column) { self->cellChanged(static_cast(row), static_cast(column)); } void QTableWidget_connect_CellChanged(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellChanged), self, [=](int row, int column) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_CurrentCellChanged(QTableWidget* self, int currentRow, int currentColumn, int previousRow, int previousColumn) { self->currentCellChanged(static_cast(currentRow), static_cast(currentColumn), static_cast(previousRow), static_cast(previousColumn)); } void QTableWidget_connect_CurrentCellChanged(QTableWidget* self, void* slot) { QTableWidget::connect(self, static_cast(&QTableWidget::currentCellChanged), self, [=](int currentRow, int currentColumn, int previousRow, int previousColumn) { miqt_exec_callback(slot, 0, nullptr); }); } void QTableWidget_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen) { QString ret = QTableWidget::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidget_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen) { QString ret = QTableWidget::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(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidget_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen) { QString ret = QTableWidget::trUtf8(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray b = ret.toUtf8(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidget_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen) { QString ret = QTableWidget::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(); *_out = static_cast(malloc(b.length())); memcpy(*_out, b.data(), b.length()); *_out_Strlen = b.length(); } void QTableWidget_SortItems2(QTableWidget* self, int column, uintptr_t order) { self->sortItems(static_cast(column), static_cast(order)); } void QTableWidget_ScrollToItem2(QTableWidget* self, QTableWidgetItem* item, uintptr_t hint) { self->scrollToItem(item, static_cast(hint)); } void QTableWidget_Delete(QTableWidget* self) { delete self; }