qt: rebuild (simpler array and heap return types)

This commit is contained in:
mappu 2024-09-17 18:29:11 +12:00
parent 303d0f0b97
commit a1d6b6a543
254 changed files with 2391 additions and 6492 deletions

View File

@ -46,15 +46,11 @@ void QAbstractButton_SetIcon(QAbstractButton* self, QIcon* icon) {
}
QIcon* QAbstractButton_Icon(const QAbstractButton* self) {
QIcon _ret = self->icon();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->icon());
}
QSize* QAbstractButton_IconSize(const QAbstractButton* self) {
QSize _ret = self->iconSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->iconSize());
}
void QAbstractButton_SetShortcut(QAbstractButton* self, QKeySequence* key) {
@ -62,9 +58,7 @@ void QAbstractButton_SetShortcut(QAbstractButton* self, QKeySequence* key) {
}
QKeySequence* QAbstractButton_Shortcut(const QAbstractButton* self) {
QKeySequence _ret = self->shortcut();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QKeySequence*>(new QKeySequence(_ret));
return new QKeySequence(self->shortcut());
}
void QAbstractButton_SetCheckable(QAbstractButton* self, bool checkable) {

View File

@ -69,8 +69,8 @@ bool QAbstractEventDispatcher_UnregisterTimers(QAbstractEventDispatcher* self, Q
struct miqt_array* QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object) {
QList<QAbstractEventDispatcher::TimerInfo> _ret = self->registeredTimers(object);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QAbstractEventDispatcher__TimerInfo** _arr = static_cast<QAbstractEventDispatcher__TimerInfo**>(malloc(sizeof(QAbstractEventDispatcher__TimerInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QAbstractEventDispatcher__TimerInfo** _arr = static_cast<QAbstractEventDispatcher__TimerInfo**>(malloc(sizeof(QAbstractEventDispatcher__TimerInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QAbstractEventDispatcher::TimerInfo(_ret[i]);
}

View File

@ -41,9 +41,7 @@ void QAbstractItemDelegate_Paint(const QAbstractItemDelegate* self, QPainter* pa
}
QSize* QAbstractItemDelegate_SizeHint(const QAbstractItemDelegate* self, QStyleOptionViewItem* option, QModelIndex* index) {
QSize _ret = self->sizeHint(*option, *index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint(*option, *index));
}
QWidget* QAbstractItemDelegate_CreateEditor(const QAbstractItemDelegate* self, QWidget* parent, QStyleOptionViewItem* option, QModelIndex* index) {

View File

@ -37,39 +37,27 @@ uintptr_t QModelIndex_InternalId(const QModelIndex* self) {
}
QModelIndex* QModelIndex_Parent(const QModelIndex* self) {
QModelIndex _ret = self->parent();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent());
}
QModelIndex* QModelIndex_Sibling(const QModelIndex* self, int row, int column) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QModelIndex_SiblingAtColumn(const QModelIndex* self, int column) {
QModelIndex _ret = self->siblingAtColumn(static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->siblingAtColumn(static_cast<int>(column)));
}
QModelIndex* QModelIndex_SiblingAtRow(const QModelIndex* self, int row) {
QModelIndex _ret = self->siblingAtRow(static_cast<int>(row));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->siblingAtRow(static_cast<int>(row)));
}
QModelIndex* QModelIndex_Child(const QModelIndex* self, int row, int column) {
QModelIndex _ret = self->child(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->child(static_cast<int>(row), static_cast<int>(column)));
}
QVariant* QModelIndex_Data(const QModelIndex* self) {
QVariant _ret = self->data();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data());
}
int QModelIndex_Flags(const QModelIndex* self) {
@ -98,9 +86,7 @@ bool QModelIndex_OperatorLesser(const QModelIndex* self, QModelIndex* other) {
}
QVariant* QModelIndex_Data1(const QModelIndex* self, int role) {
QVariant _ret = self->data(static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(static_cast<int>(role)));
}
void QModelIndex_Delete(QModelIndex* self) {
@ -165,27 +151,19 @@ uintptr_t QPersistentModelIndex_InternalId(const QPersistentModelIndex* self) {
}
QModelIndex* QPersistentModelIndex_Parent(const QPersistentModelIndex* self) {
QModelIndex _ret = self->parent();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent());
}
QModelIndex* QPersistentModelIndex_Sibling(const QPersistentModelIndex* self, int row, int column) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QPersistentModelIndex_Child(const QPersistentModelIndex* self, int row, int column) {
QModelIndex _ret = self->child(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->child(static_cast<int>(row), static_cast<int>(column)));
}
QVariant* QPersistentModelIndex_Data(const QPersistentModelIndex* self) {
QVariant _ret = self->data();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data());
}
int QPersistentModelIndex_Flags(const QPersistentModelIndex* self) {
@ -202,9 +180,7 @@ bool QPersistentModelIndex_IsValid(const QPersistentModelIndex* self) {
}
QVariant* QPersistentModelIndex_Data1(const QPersistentModelIndex* self, int role) {
QVariant _ret = self->data(static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(static_cast<int>(role)));
}
void QPersistentModelIndex_Delete(QPersistentModelIndex* self) {
@ -234,21 +210,15 @@ bool QAbstractItemModel_HasIndex(const QAbstractItemModel* self, int row, int co
}
QModelIndex* QAbstractItemModel_Index(const QAbstractItemModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QAbstractItemModel_Parent(const QAbstractItemModel* self, QModelIndex* child) {
QModelIndex _ret = self->parent(*child);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent(*child));
}
QModelIndex* QAbstractItemModel_Sibling(const QAbstractItemModel* self, int row, int column, QModelIndex* idx) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column), *idx);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column), *idx));
}
int QAbstractItemModel_RowCount(const QAbstractItemModel* self) {
@ -264,9 +234,7 @@ bool QAbstractItemModel_HasChildren(const QAbstractItemModel* self) {
}
QVariant* QAbstractItemModel_Data(const QAbstractItemModel* self, QModelIndex* index) {
QVariant _ret = self->data(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index));
}
bool QAbstractItemModel_SetData(QAbstractItemModel* self, QModelIndex* index, QVariant* value) {
@ -274,9 +242,7 @@ bool QAbstractItemModel_SetData(QAbstractItemModel* self, QModelIndex* index, QV
}
QVariant* QAbstractItemModel_HeaderData(const QAbstractItemModel* self, int section, uintptr_t orientation) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation)));
}
bool QAbstractItemModel_SetHeaderData(QAbstractItemModel* self, int section, uintptr_t orientation, QVariant* value) {
@ -285,7 +251,7 @@ bool QAbstractItemModel_SetHeaderData(QAbstractItemModel* self, int section, uin
struct miqt_array* QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) {
QStringList _ret = self->mimeTypes();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -393,15 +359,13 @@ void QAbstractItemModel_Sort(QAbstractItemModel* self, int column) {
}
QModelIndex* QAbstractItemModel_Buddy(const QAbstractItemModel* self, QModelIndex* index) {
QModelIndex _ret = self->buddy(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->buddy(*index));
}
struct miqt_array* QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value) {
QModelIndexList _ret = self->match(*start, static_cast<int>(role), *value);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QModelIndex(_ret[i]);
}
@ -412,9 +376,7 @@ struct miqt_array* QAbstractItemModel_Match(const QAbstractItemModel* self, QMod
}
QSize* QAbstractItemModel_Span(const QAbstractItemModel* self, QModelIndex* index) {
QSize _ret = self->span(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->span(*index));
}
bool QAbstractItemModel_CheckIndex(const QAbstractItemModel* self, QModelIndex* index) {
@ -512,9 +474,7 @@ bool QAbstractItemModel_HasIndex3(const QAbstractItemModel* self, int row, int c
}
QModelIndex* QAbstractItemModel_Index3(const QAbstractItemModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
int QAbstractItemModel_RowCount1(const QAbstractItemModel* self, QModelIndex* parent) {
@ -530,9 +490,7 @@ bool QAbstractItemModel_HasChildren1(const QAbstractItemModel* self, QModelIndex
}
QVariant* QAbstractItemModel_Data2(const QAbstractItemModel* self, QModelIndex* index, int role) {
QVariant _ret = self->data(*index, static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index, static_cast<int>(role)));
}
bool QAbstractItemModel_SetData3(QAbstractItemModel* self, QModelIndex* index, QVariant* value, int role) {
@ -540,9 +498,7 @@ bool QAbstractItemModel_SetData3(QAbstractItemModel* self, QModelIndex* index, Q
}
QVariant* QAbstractItemModel_HeaderData3(const QAbstractItemModel* self, int section, uintptr_t orientation, int role) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
}
bool QAbstractItemModel_SetHeaderData4(QAbstractItemModel* self, int section, uintptr_t orientation, QVariant* value, int role) {
@ -587,8 +543,8 @@ void QAbstractItemModel_Sort2(QAbstractItemModel* self, int column, uintptr_t or
struct miqt_array* QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits) {
QModelIndexList _ret = self->match(*start, static_cast<int>(role), *value, static_cast<int>(hits));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QModelIndex(_ret[i]);
}
@ -600,8 +556,8 @@ struct miqt_array* QAbstractItemModel_Match4(const QAbstractItemModel* self, QMo
struct miqt_array* QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) {
QModelIndexList _ret = self->match(*start, static_cast<int>(role), *value, static_cast<int>(hits), static_cast<Qt::MatchFlags>(flags));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QModelIndex(_ret[i]);
}
@ -660,8 +616,8 @@ void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_arr
void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, void* slot) {
QAbstractItemModel::connect(self, static_cast<void (QAbstractItemModel::*)(const QList<QPersistentModelIndex>&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), self, [=](const QList<QPersistentModelIndex>& parents) {
const QList<QPersistentModelIndex>& parents_ret = parents;
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex**) * parents_ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex*) * parents_ret.length()));
for (size_t i = 0, e = parents_ret.length(); i < e; ++i) {
parents_arr[i] = new QPersistentModelIndex(parents_ret[i]);
}
@ -686,8 +642,8 @@ void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_arr
void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, void* slot) {
QAbstractItemModel::connect(self, static_cast<void (QAbstractItemModel::*)(const QList<QPersistentModelIndex>&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), self, [=](const QList<QPersistentModelIndex>& parents, QAbstractItemModel::LayoutChangeHint hint) {
const QList<QPersistentModelIndex>& parents_ret = parents;
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex**) * parents_ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex*) * parents_ret.length()));
for (size_t i = 0, e = parents_ret.length(); i < e; ++i) {
parents_arr[i] = new QPersistentModelIndex(parents_ret[i]);
}
@ -714,8 +670,8 @@ void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct
void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, void* slot) {
QAbstractItemModel::connect(self, static_cast<void (QAbstractItemModel::*)(const QList<QPersistentModelIndex>&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), self, [=](const QList<QPersistentModelIndex>& parents) {
const QList<QPersistentModelIndex>& parents_ret = parents;
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex**) * parents_ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex*) * parents_ret.length()));
for (size_t i = 0, e = parents_ret.length(); i < e; ++i) {
parents_arr[i] = new QPersistentModelIndex(parents_ret[i]);
}
@ -740,8 +696,8 @@ void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct
void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, void* slot) {
QAbstractItemModel::connect(self, static_cast<void (QAbstractItemModel::*)(const QList<QPersistentModelIndex>&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), self, [=](const QList<QPersistentModelIndex>& parents, QAbstractItemModel::LayoutChangeHint hint) {
const QList<QPersistentModelIndex>& parents_ret = parents;
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex**) * parents_ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPersistentModelIndex** parents_arr = static_cast<QPersistentModelIndex**>(malloc(sizeof(QPersistentModelIndex*) * parents_ret.length()));
for (size_t i = 0, e = parents_ret.length(); i < e; ++i) {
parents_arr[i] = new QPersistentModelIndex(parents_ret[i]);
}
@ -778,15 +734,11 @@ struct miqt_string* QAbstractTableModel_TrUtf8(const char* s) {
}
QModelIndex* QAbstractTableModel_Index(const QAbstractTableModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QAbstractTableModel_Sibling(const QAbstractTableModel* self, int row, int column, QModelIndex* idx) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column), *idx);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column), *idx));
}
bool QAbstractTableModel_DropMimeData(QAbstractTableModel* self, QMimeData* data, uintptr_t action, int row, int column, QModelIndex* parent) {
@ -827,9 +779,7 @@ struct miqt_string* QAbstractTableModel_TrUtf83(const char* s, const char* c, in
}
QModelIndex* QAbstractTableModel_Index3(const QAbstractTableModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
void QAbstractTableModel_Delete(QAbstractTableModel* self) {
@ -855,15 +805,11 @@ struct miqt_string* QAbstractListModel_TrUtf8(const char* s) {
}
QModelIndex* QAbstractListModel_Index(const QAbstractListModel* self, int row) {
QModelIndex _ret = self->index(static_cast<int>(row));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row)));
}
QModelIndex* QAbstractListModel_Sibling(const QAbstractListModel* self, int row, int column, QModelIndex* idx) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column), *idx);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column), *idx));
}
bool QAbstractListModel_DropMimeData(QAbstractListModel* self, QMimeData* data, uintptr_t action, int row, int column, QModelIndex* parent) {
@ -904,15 +850,11 @@ struct miqt_string* QAbstractListModel_TrUtf83(const char* s, const char* c, int
}
QModelIndex* QAbstractListModel_Index2(const QAbstractListModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QAbstractListModel_Index3(const QAbstractListModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
void QAbstractListModel_Delete(QAbstractListModel* self) {

View File

@ -77,15 +77,11 @@ uintptr_t QAbstractItemView_SelectionBehavior(const QAbstractItemView* self) {
}
QModelIndex* QAbstractItemView_CurrentIndex(const QAbstractItemView* self) {
QModelIndex _ret = self->currentIndex();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->currentIndex());
}
QModelIndex* QAbstractItemView_RootIndex(const QAbstractItemView* self) {
QModelIndex _ret = self->rootIndex();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->rootIndex());
}
void QAbstractItemView_SetEditTriggers(QAbstractItemView* self, int triggers) {
@ -202,9 +198,7 @@ void QAbstractItemView_SetIconSize(QAbstractItemView* self, QSize* size) {
}
QSize* QAbstractItemView_IconSize(const QAbstractItemView* self) {
QSize _ret = self->iconSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->iconSize());
}
void QAbstractItemView_SetTextElideMode(QAbstractItemView* self, uintptr_t mode) {
@ -222,9 +216,7 @@ void QAbstractItemView_KeyboardSearch(QAbstractItemView* self, struct miqt_strin
}
QRect* QAbstractItemView_VisualRect(const QAbstractItemView* self, QModelIndex* index) {
QRect _ret = self->visualRect(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->visualRect(*index));
}
void QAbstractItemView_ScrollTo(QAbstractItemView* self, QModelIndex* index) {
@ -232,15 +224,11 @@ void QAbstractItemView_ScrollTo(QAbstractItemView* self, QModelIndex* index) {
}
QModelIndex* QAbstractItemView_IndexAt(const QAbstractItemView* self, QPoint* point) {
QModelIndex _ret = self->indexAt(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->indexAt(*point));
}
QSize* QAbstractItemView_SizeHintForIndex(const QAbstractItemView* self, QModelIndex* index) {
QSize _ret = self->sizeHintForIndex(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHintForIndex(*index));
}
int QAbstractItemView_SizeHintForRow(const QAbstractItemView* self, int row) {
@ -292,9 +280,7 @@ QAbstractItemDelegate* QAbstractItemView_ItemDelegateWithIndex(const QAbstractIt
}
QVariant* QAbstractItemView_InputMethodQuery(const QAbstractItemView* self, uintptr_t query) {
QVariant _ret = self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
void QAbstractItemView_Reset(QAbstractItemView* self) {

View File

@ -40,15 +40,11 @@ QAbstractItemModel* QAbstractProxyModel_SourceModel(const QAbstractProxyModel* s
}
QModelIndex* QAbstractProxyModel_MapToSource(const QAbstractProxyModel* self, QModelIndex* proxyIndex) {
QModelIndex _ret = self->mapToSource(*proxyIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mapToSource(*proxyIndex));
}
QModelIndex* QAbstractProxyModel_MapFromSource(const QAbstractProxyModel* self, QModelIndex* sourceIndex) {
QModelIndex _ret = self->mapFromSource(*sourceIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mapFromSource(*sourceIndex));
}
bool QAbstractProxyModel_Submit(QAbstractProxyModel* self) {
@ -60,15 +56,11 @@ void QAbstractProxyModel_Revert(QAbstractProxyModel* self) {
}
QVariant* QAbstractProxyModel_Data(const QAbstractProxyModel* self, QModelIndex* proxyIndex) {
QVariant _ret = self->data(*proxyIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*proxyIndex));
}
QVariant* QAbstractProxyModel_HeaderData(const QAbstractProxyModel* self, int section, uintptr_t orientation) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation)));
}
int QAbstractProxyModel_Flags(const QAbstractProxyModel* self, QModelIndex* index) {
@ -85,9 +77,7 @@ bool QAbstractProxyModel_SetHeaderData(QAbstractProxyModel* self, int section, u
}
QModelIndex* QAbstractProxyModel_Buddy(const QAbstractProxyModel* self, QModelIndex* index) {
QModelIndex _ret = self->buddy(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->buddy(*index));
}
bool QAbstractProxyModel_CanFetchMore(const QAbstractProxyModel* self, QModelIndex* parent) {
@ -103,9 +93,7 @@ void QAbstractProxyModel_Sort(QAbstractProxyModel* self, int column) {
}
QSize* QAbstractProxyModel_Span(const QAbstractProxyModel* self, QModelIndex* index) {
QSize _ret = self->span(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->span(*index));
}
bool QAbstractProxyModel_HasChildren(const QAbstractProxyModel* self) {
@ -113,9 +101,7 @@ bool QAbstractProxyModel_HasChildren(const QAbstractProxyModel* self) {
}
QModelIndex* QAbstractProxyModel_Sibling(const QAbstractProxyModel* self, int row, int column, QModelIndex* idx) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column), *idx);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column), *idx));
}
QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array* /* of QModelIndex* */ indexes) {
@ -138,7 +124,7 @@ bool QAbstractProxyModel_DropMimeData(QAbstractProxyModel* self, QMimeData* data
struct miqt_array* QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self) {
QStringList _ret = self->mimeTypes();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -191,15 +177,11 @@ struct miqt_string* QAbstractProxyModel_TrUtf83(const char* s, const char* c, in
}
QVariant* QAbstractProxyModel_Data2(const QAbstractProxyModel* self, QModelIndex* proxyIndex, int role) {
QVariant _ret = self->data(*proxyIndex, static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*proxyIndex, static_cast<int>(role)));
}
QVariant* QAbstractProxyModel_HeaderData3(const QAbstractProxyModel* self, int section, uintptr_t orientation, int role) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
}
bool QAbstractProxyModel_SetData3(QAbstractProxyModel* self, QModelIndex* index, QVariant* value, int role) {

View File

@ -105,21 +105,15 @@ void QAbstractScrollArea_SetViewport(QAbstractScrollArea* self, QWidget* widget)
}
QSize* QAbstractScrollArea_MaximumViewportSize(const QAbstractScrollArea* self) {
QSize _ret = self->maximumViewportSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->maximumViewportSize());
}
QSize* QAbstractScrollArea_MinimumSizeHint(const QAbstractScrollArea* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
QSize* QAbstractScrollArea_SizeHint(const QAbstractScrollArea* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
void QAbstractScrollArea_SetupViewport(QAbstractScrollArea* self, QWidget* viewport) {

View File

@ -136,15 +136,11 @@ bool QAbstractSpinBox_IsGroupSeparatorShown(const QAbstractSpinBox* self) {
}
QSize* QAbstractSpinBox_SizeHint(const QAbstractSpinBox* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QAbstractSpinBox_MinimumSizeHint(const QAbstractSpinBox* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
void QAbstractSpinBox_InterpretText(QAbstractSpinBox* self) {
@ -156,9 +152,7 @@ bool QAbstractSpinBox_Event(QAbstractSpinBox* self, QEvent* event) {
}
QVariant* QAbstractSpinBox_InputMethodQuery(const QAbstractSpinBox* self, uintptr_t param1) {
QVariant _ret = self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(param1)));
}
uintptr_t QAbstractSpinBox_Validate(const QAbstractSpinBox* self, struct miqt_string* input, int* pos) {

View File

@ -61,15 +61,11 @@ struct miqt_string* QAbstractTextDocumentLayout_ImageAt(const QAbstractTextDocum
}
QTextFormat* QAbstractTextDocumentLayout_FormatAt(const QAbstractTextDocumentLayout* self, QPointF* pos) {
QTextFormat _ret = self->formatAt(*pos);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTextFormat*>(new QTextFormat(_ret));
return new QTextFormat(self->formatAt(*pos));
}
QTextBlock* QAbstractTextDocumentLayout_BlockWithMarkerAt(const QAbstractTextDocumentLayout* self, QPointF* pos) {
QTextBlock _ret = self->blockWithMarkerAt(*pos);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTextBlock*>(new QTextBlock(_ret));
return new QTextBlock(self->blockWithMarkerAt(*pos));
}
int QAbstractTextDocumentLayout_PageCount(const QAbstractTextDocumentLayout* self) {
@ -77,21 +73,15 @@ int QAbstractTextDocumentLayout_PageCount(const QAbstractTextDocumentLayout* sel
}
QSizeF* QAbstractTextDocumentLayout_DocumentSize(const QAbstractTextDocumentLayout* self) {
QSizeF _ret = self->documentSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->documentSize());
}
QRectF* QAbstractTextDocumentLayout_FrameBoundingRect(const QAbstractTextDocumentLayout* self, QTextFrame* frame) {
QRectF _ret = self->frameBoundingRect(frame);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->frameBoundingRect(frame));
}
QRectF* QAbstractTextDocumentLayout_BlockBoundingRect(const QAbstractTextDocumentLayout* self, QTextBlock* block) {
QRectF _ret = self->blockBoundingRect(*block);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->blockBoundingRect(*block));
}
void QAbstractTextDocumentLayout_SetPaintDevice(QAbstractTextDocumentLayout* self, QPaintDevice* device) {
@ -215,9 +205,7 @@ void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self) {
}
QSizeF* QTextObjectInterface_IntrinsicSize(QTextObjectInterface* self, QTextDocument* doc, int posInDocument, QTextFormat* format) {
QSizeF _ret = self->intrinsicSize(doc, static_cast<int>(posInDocument), *format);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->intrinsicSize(doc, static_cast<int>(posInDocument), *format));
}
void QTextObjectInterface_DrawObject(QTextObjectInterface* self, QPainter* painter, QRectF* rect, QTextDocument* doc, int posInDocument, QTextFormat* format) {

View File

@ -134,9 +134,7 @@ void QAccessibleInterface_SetText(QAccessibleInterface* self, uintptr_t t, struc
}
QRect* QAccessibleInterface_Rect(const QAccessibleInterface* self) {
QRect _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->rect());
}
uintptr_t QAccessibleInterface_Role(const QAccessibleInterface* self) {
@ -145,21 +143,15 @@ uintptr_t QAccessibleInterface_Role(const QAccessibleInterface* self) {
}
QAccessible__State* QAccessibleInterface_State(const QAccessibleInterface* self) {
QAccessible::State _ret = self->state();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QAccessible::State*>(new QAccessible::State(_ret));
return new QAccessible::State(self->state());
}
QColor* QAccessibleInterface_ForegroundColor(const QAccessibleInterface* self) {
QColor _ret = self->foregroundColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->foregroundColor());
}
QColor* QAccessibleInterface_BackgroundColor(const QAccessibleInterface* self) {
QColor _ret = self->backgroundColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->backgroundColor());
}
QAccessibleTextInterface* QAccessibleInterface_TextInterface(QAccessibleInterface* self) {
@ -251,9 +243,7 @@ int QAccessibleTextInterface_CharacterCount(const QAccessibleTextInterface* self
}
QRect* QAccessibleTextInterface_CharacterRect(const QAccessibleTextInterface* self, int offset) {
QRect _ret = self->characterRect(static_cast<int>(offset));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->characterRect(static_cast<int>(offset)));
}
int QAccessibleTextInterface_OffsetAtPoint(const QAccessibleTextInterface* self, QPoint* point) {
@ -302,9 +292,7 @@ void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* s
}
QVariant* QAccessibleValueInterface_CurrentValue(const QAccessibleValueInterface* self) {
QVariant _ret = self->currentValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->currentValue());
}
void QAccessibleValueInterface_SetCurrentValue(QAccessibleValueInterface* self, QVariant* value) {
@ -312,21 +300,15 @@ void QAccessibleValueInterface_SetCurrentValue(QAccessibleValueInterface* self,
}
QVariant* QAccessibleValueInterface_MaximumValue(const QAccessibleValueInterface* self) {
QVariant _ret = self->maximumValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->maximumValue());
}
QVariant* QAccessibleValueInterface_MinimumValue(const QAccessibleValueInterface* self) {
QVariant _ret = self->minimumValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->minimumValue());
}
QVariant* QAccessibleValueInterface_MinimumStepSize(const QAccessibleValueInterface* self) {
QVariant _ret = self->minimumStepSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->minimumStepSize());
}
void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, QAccessibleValueInterface* param1) {
@ -528,7 +510,7 @@ struct miqt_string* QAccessibleActionInterface_TrUtf8(const char* sourceText) {
struct miqt_array* QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self) {
QStringList _ret = self->actionNames();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -566,7 +548,7 @@ void QAccessibleActionInterface_DoAction(QAccessibleActionInterface* self, struc
struct miqt_array* QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string* actionName) {
QString actionName_QString = QString::fromUtf8(&actionName->data, actionName->len);
QStringList _ret = self->keyBindingsForAction(actionName_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -708,15 +690,11 @@ struct miqt_string* QAccessibleImageInterface_ImageDescription(const QAccessible
}
QSize* QAccessibleImageInterface_ImageSize(const QAccessibleImageInterface* self) {
QSize _ret = self->imageSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->imageSize());
}
QPoint* QAccessibleImageInterface_ImagePosition(const QAccessibleImageInterface* self) {
QPoint _ret = self->imagePosition();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->imagePosition());
}
void QAccessibleImageInterface_OperatorAssign(QAccessibleImageInterface* self, QAccessibleImageInterface* param1) {
@ -773,9 +751,7 @@ QAccessibleStateChangeEvent* QAccessibleStateChangeEvent_new2(QAccessibleInterfa
}
QAccessible__State* QAccessibleStateChangeEvent_ChangedStates(const QAccessibleStateChangeEvent* self) {
QAccessible::State _ret = self->changedStates();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QAccessible::State*>(new QAccessible::State(_ret));
return new QAccessible::State(self->changedStates());
}
void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self) {
@ -923,9 +899,7 @@ void QAccessibleValueChangeEvent_SetValue(QAccessibleValueChangeEvent* self, QVa
}
QVariant* QAccessibleValueChangeEvent_Value(const QAccessibleValueChangeEvent* self) {
QVariant _ret = self->value();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->value());
}
void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self) {

View File

@ -21,9 +21,7 @@ QObject* QAccessibleObject_Object(const QAccessibleObject* self) {
}
QRect* QAccessibleObject_Rect(const QAccessibleObject* self) {
QRect _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->rect());
}
void QAccessibleObject_SetText(QAccessibleObject* self, uintptr_t t, struct miqt_string* text) {
@ -76,9 +74,7 @@ uintptr_t QAccessibleApplication_Role(const QAccessibleApplication* self) {
}
QAccessible__State* QAccessibleApplication_State(const QAccessibleApplication* self) {
QAccessible::State _ret = self->state();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QAccessible::State*>(new QAccessible::State(_ret));
return new QAccessible::State(self->state());
}
void QAccessibleApplication_Delete(QAccessibleApplication* self) {

View File

@ -47,9 +47,7 @@ QAccessibleInterface* QAccessibleWidget_FocusChild(const QAccessibleWidget* self
}
QRect* QAccessibleWidget_Rect(const QAccessibleWidget* self) {
QRect _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->rect());
}
QAccessibleInterface* QAccessibleWidget_Parent(const QAccessibleWidget* self) {
@ -73,26 +71,20 @@ uintptr_t QAccessibleWidget_Role(const QAccessibleWidget* self) {
}
QAccessible__State* QAccessibleWidget_State(const QAccessibleWidget* self) {
QAccessible::State _ret = self->state();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QAccessible::State*>(new QAccessible::State(_ret));
return new QAccessible::State(self->state());
}
QColor* QAccessibleWidget_ForegroundColor(const QAccessibleWidget* self) {
QColor _ret = self->foregroundColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->foregroundColor());
}
QColor* QAccessibleWidget_BackgroundColor(const QAccessibleWidget* self) {
QColor _ret = self->backgroundColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->backgroundColor());
}
struct miqt_array* QAccessibleWidget_ActionNames(const QAccessibleWidget* self) {
QStringList _ret = self->actionNames();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -114,7 +106,7 @@ void QAccessibleWidget_DoAction(QAccessibleWidget* self, struct miqt_string* act
struct miqt_array* QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string* actionName) {
QString actionName_QString = QString::fromUtf8(&actionName->data, actionName->len);
QStringList _ret = self->keyBindingsForAction(actionName_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -76,9 +76,7 @@ void QAction_SetIcon(QAction* self, QIcon* icon) {
}
QIcon* QAction_Icon(const QAction* self) {
QIcon _ret = self->icon();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->icon());
}
void QAction_SetText(QAction* self, struct miqt_string* text) {
@ -171,9 +169,7 @@ void QAction_SetShortcut(QAction* self, QKeySequence* shortcut) {
}
QKeySequence* QAction_Shortcut(const QAction* self) {
QKeySequence _ret = self->shortcut();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QKeySequence*>(new QKeySequence(_ret));
return new QKeySequence(self->shortcut());
}
void QAction_SetShortcuts(QAction* self, struct miqt_array* /* of QKeySequence* */ shortcuts) {
@ -192,8 +188,8 @@ void QAction_SetShortcutsWithShortcuts(QAction* self, uintptr_t shortcuts) {
struct miqt_array* QAction_Shortcuts(const QAction* self) {
QList<QKeySequence> _ret = self->shortcuts();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QKeySequence** _arr = static_cast<QKeySequence**>(malloc(sizeof(QKeySequence**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QKeySequence** _arr = static_cast<QKeySequence**>(malloc(sizeof(QKeySequence*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QKeySequence(_ret[i]);
}
@ -225,9 +221,7 @@ void QAction_SetFont(QAction* self, QFont* font) {
}
QFont* QAction_Font(const QAction* self) {
QFont _ret = self->font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->font());
}
void QAction_SetCheckable(QAction* self, bool checkable) {
@ -239,9 +233,7 @@ bool QAction_IsCheckable(const QAction* self) {
}
QVariant* QAction_Data(const QAction* self) {
QVariant _ret = self->data();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data());
}
void QAction_SetData(QAction* self, QVariant* varVal) {

View File

@ -67,15 +67,11 @@ void QApplication_SetColorSpec(int colorSpec) {
}
QPalette* QApplication_Palette(QWidget* param1) {
QPalette _ret = QApplication::palette(param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPalette*>(new QPalette(_ret));
return new QPalette(QApplication::palette(param1));
}
QPalette* QApplication_PaletteWithClassName(const char* className) {
QPalette _ret = QApplication::palette(className);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPalette*>(new QPalette(_ret));
return new QPalette(QApplication::palette(className));
}
void QApplication_SetPalette(QPalette* param1) {
@ -83,21 +79,15 @@ void QApplication_SetPalette(QPalette* param1) {
}
QFont* QApplication_Font() {
QFont _ret = QApplication::font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QApplication::font());
}
QFont* QApplication_FontWithQWidget(QWidget* param1) {
QFont _ret = QApplication::font(param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QApplication::font(param1));
}
QFont* QApplication_FontWithClassName(const char* className) {
QFont _ret = QApplication::font(className);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QApplication::font(className));
}
void QApplication_SetFont(QFont* param1) {
@ -105,9 +95,7 @@ void QApplication_SetFont(QFont* param1) {
}
QFontMetrics* QApplication_FontMetrics() {
QFontMetrics _ret = QApplication::fontMetrics();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFontMetrics*>(new QFontMetrics(_ret));
return new QFontMetrics(QApplication::fontMetrics());
}
void QApplication_SetWindowIcon(QIcon* icon) {
@ -115,9 +103,7 @@ void QApplication_SetWindowIcon(QIcon* icon) {
}
QIcon* QApplication_WindowIcon() {
QIcon _ret = QApplication::windowIcon();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(QApplication::windowIcon());
}
struct miqt_array* QApplication_AllWidgets() {
@ -231,9 +217,7 @@ void QApplication_SetGlobalStrut(QSize* globalStrut) {
}
QSize* QApplication_GlobalStrut() {
QSize _ret = QApplication::globalStrut();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(QApplication::globalStrut());
}
void QApplication_SetStartDragTime(int ms) {

View File

@ -29,9 +29,7 @@ void QBackingStore_Resize(QBackingStore* self, QSize* size) {
}
QSize* QBackingStore_Size(const QBackingStore* self) {
QSize _ret = self->size();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->size());
}
bool QBackingStore_Scroll(QBackingStore* self, QRegion* area, int dx, int dy) {
@ -51,9 +49,7 @@ void QBackingStore_SetStaticContents(QBackingStore* self, QRegion* region) {
}
QRegion* QBackingStore_StaticContents(const QBackingStore* self) {
QRegion _ret = self->staticContents();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRegion*>(new QRegion(_ret));
return new QRegion(self->staticContents());
}
bool QBackingStore_HasStaticContents(const QBackingStore* self) {

View File

@ -89,9 +89,7 @@ bool QBitArray_At(const QBitArray* self, int i) {
}
QBitRef* QBitArray_OperatorSubscript(QBitArray* self, int i) {
QBitRef _ret = self->operator[](static_cast<int>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitRef*>(new QBitRef(_ret));
return new QBitRef(self->operator[](static_cast<int>(i)));
}
bool QBitArray_OperatorSubscriptWithInt(const QBitArray* self, int i) {
@ -99,9 +97,7 @@ bool QBitArray_OperatorSubscriptWithInt(const QBitArray* self, int i) {
}
QBitRef* QBitArray_OperatorSubscriptWithUint(QBitArray* self, unsigned int i) {
QBitRef _ret = self->operator[](static_cast<uint>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitRef*>(new QBitRef(_ret));
return new QBitRef(self->operator[](static_cast<uint>(i)));
}
bool QBitArray_OperatorSubscript2(const QBitArray* self, unsigned int i) {
@ -121,9 +117,7 @@ void QBitArray_OperatorBitwiseNotAssign(QBitArray* self, QBitArray* param1) {
}
QBitArray* QBitArray_OperatorBitwiseXor(const QBitArray* self) {
QBitArray _ret = self->operator~();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitArray*>(new QBitArray(_ret));
return new QBitArray(self->operator~());
}
bool QBitArray_OperatorEqual(const QBitArray* self, QBitArray* other) {
@ -151,9 +145,7 @@ const char* QBitArray_Bits(const QBitArray* self) {
}
QBitArray* QBitArray_FromBits(const char* data, size_t lenVal) {
QBitArray _ret = QBitArray::fromBits(data, static_cast<qsizetype>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitArray*>(new QBitArray(_ret));
return new QBitArray(QBitArray::fromBits(data, static_cast<qsizetype>(lenVal)));
}
bool QBitArray_Fill22(QBitArray* self, bool val, int size) {

View File

@ -58,39 +58,27 @@ void QBitmap_Clear(QBitmap* self) {
}
QBitmap* QBitmap_FromImage(QImage* image) {
QBitmap _ret = QBitmap::fromImage(*image);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(QBitmap::fromImage(*image));
}
QBitmap* QBitmap_FromData(QSize* size, const unsigned char* bits) {
QBitmap _ret = QBitmap::fromData(*size, static_cast<const uchar*>(bits));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(QBitmap::fromData(*size, static_cast<const uchar*>(bits)));
}
QBitmap* QBitmap_Transformed(const QBitmap* self, QMatrix* param1) {
QBitmap _ret = self->transformed(*param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(self->transformed(*param1));
}
QBitmap* QBitmap_TransformedWithMatrix(const QBitmap* self, QTransform* matrix) {
QBitmap _ret = self->transformed(*matrix);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(self->transformed(*matrix));
}
QBitmap* QBitmap_FromImage2(QImage* image, int flags) {
QBitmap _ret = QBitmap::fromImage(*image, static_cast<Qt::ImageConversionFlags>(flags));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(QBitmap::fromImage(*image, static_cast<Qt::ImageConversionFlags>(flags)));
}
QBitmap* QBitmap_FromData3(QSize* size, const unsigned char* bits, uintptr_t monoFormat) {
QBitmap _ret = QBitmap::fromData(*size, static_cast<const uchar*>(bits), static_cast<QImage::Format>(monoFormat));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(QBitmap::fromData(*size, static_cast<const uchar*>(bits), static_cast<QImage::Format>(monoFormat)));
}
void QBitmap_Delete(QBitmap* self) {

View File

@ -127,21 +127,15 @@ int QBoxLayout_Stretch(const QBoxLayout* self, int index) {
}
QSize* QBoxLayout_SizeHint(const QBoxLayout* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QBoxLayout_MinimumSize(const QBoxLayout* self) {
QSize _ret = self->minimumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSize());
}
QSize* QBoxLayout_MaximumSize(const QBoxLayout* self) {
QSize _ret = self->maximumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->maximumSize());
}
bool QBoxLayout_HasHeightForWidth(const QBoxLayout* self) {

View File

@ -91,9 +91,7 @@ void QBrush_SetMatrix(QBrush* self, QMatrix* mat) {
}
QTransform* QBrush_Transform(const QBrush* self) {
QTransform _ret = self->transform();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->transform());
}
void QBrush_SetTransform(QBrush* self, QTransform* transform) {
@ -101,9 +99,7 @@ void QBrush_SetTransform(QBrush* self, QTransform* transform) {
}
QPixmap* QBrush_Texture(const QBrush* self) {
QPixmap _ret = self->texture();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->texture());
}
void QBrush_SetTexture(QBrush* self, QPixmap* pixmap) {
@ -111,9 +107,7 @@ void QBrush_SetTexture(QBrush* self, QPixmap* pixmap) {
}
QImage* QBrush_TextureImage(const QBrush* self) {
QImage _ret = self->textureImage();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->textureImage());
}
void QBrush_SetTextureImage(QBrush* self, QImage* image) {
@ -247,9 +241,7 @@ QLinearGradient* QLinearGradient_new4(QLinearGradient* param1) {
}
QPointF* QLinearGradient_Start(const QLinearGradient* self) {
QPointF _ret = self->start();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->start());
}
void QLinearGradient_SetStart(QLinearGradient* self, QPointF* start) {
@ -261,9 +253,7 @@ void QLinearGradient_SetStart2(QLinearGradient* self, double x, double y) {
}
QPointF* QLinearGradient_FinalStop(const QLinearGradient* self) {
QPointF _ret = self->finalStop();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->finalStop());
}
void QLinearGradient_SetFinalStop(QLinearGradient* self, QPointF* stop) {
@ -311,9 +301,7 @@ QRadialGradient* QRadialGradient_new8(QRadialGradient* param1) {
}
QPointF* QRadialGradient_Center(const QRadialGradient* self) {
QPointF _ret = self->center();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->center());
}
void QRadialGradient_SetCenter(QRadialGradient* self, QPointF* center) {
@ -325,9 +313,7 @@ void QRadialGradient_SetCenter2(QRadialGradient* self, double x, double y) {
}
QPointF* QRadialGradient_FocalPoint(const QRadialGradient* self) {
QPointF _ret = self->focalPoint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->focalPoint());
}
void QRadialGradient_SetFocalPoint(QRadialGradient* self, QPointF* focalPoint) {
@ -383,9 +369,7 @@ QConicalGradient* QConicalGradient_new4(QConicalGradient* param1) {
}
QPointF* QConicalGradient_Center(const QConicalGradient* self) {
QPointF _ret = self->center();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->center());
}
void QConicalGradient_SetCenter(QConicalGradient* self, QPointF* center) {

View File

@ -133,15 +133,11 @@ char QByteArray_OperatorSubscriptWithUint(const QByteArray* self, unsigned int i
}
QByteRef* QByteArray_OperatorSubscriptWithInt(QByteArray* self, int i) {
QByteRef _ret = self->operator[](static_cast<int>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteRef*>(new QByteRef(_ret));
return new QByteRef(self->operator[](static_cast<int>(i)));
}
QByteRef* QByteArray_OperatorSubscript2(QByteArray* self, unsigned int i) {
QByteRef _ret = self->operator[](static_cast<uint>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteRef*>(new QByteRef(_ret));
return new QByteRef(self->operator[](static_cast<uint>(i)));
}
char QByteArray_Front(const QByteArray* self) {
@ -149,9 +145,7 @@ char QByteArray_Front(const QByteArray* self) {
}
QByteRef* QByteArray_Front2(QByteArray* self) {
QByteRef _ret = self->front();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteRef*>(new QByteRef(_ret));
return new QByteRef(self->front());
}
char QByteArray_Back(const QByteArray* self) {
@ -159,9 +153,7 @@ char QByteArray_Back(const QByteArray* self) {
}
QByteRef* QByteArray_Back2(QByteArray* self) {
QByteRef _ret = self->back();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteRef*>(new QByteRef(_ret));
return new QByteRef(self->back());
}
int QByteArray_IndexOf(const QByteArray* self, char c) {
@ -221,27 +213,19 @@ int QByteArray_CompareWithQByteArray(const QByteArray* self, QByteArray* a) {
}
QByteArray* QByteArray_Left(const QByteArray* self, int lenVal) {
QByteArray _ret = self->left(static_cast<int>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->left(static_cast<int>(lenVal)));
}
QByteArray* QByteArray_Right(const QByteArray* self, int lenVal) {
QByteArray _ret = self->right(static_cast<int>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->right(static_cast<int>(lenVal)));
}
QByteArray* QByteArray_Mid(const QByteArray* self, int index) {
QByteArray _ret = self->mid(static_cast<int>(index));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->mid(static_cast<int>(index)));
}
QByteArray* QByteArray_Chopped(const QByteArray* self, int lenVal) {
QByteArray _ret = self->chopped(static_cast<int>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->chopped(static_cast<int>(lenVal)));
}
bool QByteArray_StartsWith(const QByteArray* self, QByteArray* a) {
@ -285,39 +269,27 @@ void QByteArray_Chop(QByteArray* self, int n) {
}
QByteArray* QByteArray_ToLower(const QByteArray* self) {
QByteArray _ret = self->toLower();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toLower());
}
QByteArray* QByteArray_ToUpper(const QByteArray* self) {
QByteArray _ret = self->toUpper();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toUpper());
}
QByteArray* QByteArray_Trimmed(const QByteArray* self) {
QByteArray _ret = self->trimmed();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->trimmed());
}
QByteArray* QByteArray_Simplified(const QByteArray* self) {
QByteArray _ret = self->simplified();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->simplified());
}
QByteArray* QByteArray_LeftJustified(const QByteArray* self, int width) {
QByteArray _ret = self->leftJustified(static_cast<int>(width));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->leftJustified(static_cast<int>(width)));
}
QByteArray* QByteArray_RightJustified(const QByteArray* self, int width) {
QByteArray _ret = self->rightJustified(static_cast<int>(width));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->rightJustified(static_cast<int>(width)));
}
QByteArray* QByteArray_Prepend(QByteArray* self, char c) {
@ -502,8 +474,8 @@ QByteArray* QByteArray_OperatorPlusAssignWithQByteArray(QByteArray* self, QByteA
struct miqt_array* QByteArray_Split(const QByteArray* self, char sep) {
QList<QByteArray> _ret = self->split(static_cast<char>(sep));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QByteArray** _arr = static_cast<QByteArray**>(malloc(sizeof(QByteArray**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QByteArray** _arr = static_cast<QByteArray**>(malloc(sizeof(QByteArray*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QByteArray(_ret[i]);
}
@ -514,9 +486,7 @@ struct miqt_array* QByteArray_Split(const QByteArray* self, char sep) {
}
QByteArray* QByteArray_Repeated(const QByteArray* self, int times) {
QByteArray _ret = self->repeated(static_cast<int>(times));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->repeated(static_cast<int>(times)));
}
QByteArray* QByteArray_AppendWithQString(QByteArray* self, struct miqt_string* s) {
@ -642,33 +612,23 @@ double QByteArray_ToDouble(const QByteArray* self) {
}
QByteArray* QByteArray_ToBase64(const QByteArray* self, int options) {
QByteArray _ret = self->toBase64(static_cast<QByteArray::Base64Options>(options));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toBase64(static_cast<QByteArray::Base64Options>(options)));
}
QByteArray* QByteArray_ToBase642(const QByteArray* self) {
QByteArray _ret = self->toBase64();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toBase64());
}
QByteArray* QByteArray_ToHex(const QByteArray* self) {
QByteArray _ret = self->toHex();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toHex());
}
QByteArray* QByteArray_ToHexWithSeparator(const QByteArray* self, char separator) {
QByteArray _ret = self->toHex(static_cast<char>(separator));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toHex(static_cast<char>(separator)));
}
QByteArray* QByteArray_ToPercentEncoding(const QByteArray* self) {
QByteArray _ret = self->toPercentEncoding();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toPercentEncoding());
}
QByteArray* QByteArray_SetNum(QByteArray* self, int16_t param1) {
@ -726,69 +686,47 @@ QByteArray* QByteArray_SetRawData(QByteArray* self, const char* a, unsigned int
}
QByteArray* QByteArray_Number(int param1) {
QByteArray _ret = QByteArray::number(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<int>(param1)));
}
QByteArray* QByteArray_NumberWithUint(unsigned int param1) {
QByteArray _ret = QByteArray::number(static_cast<uint>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<uint>(param1)));
}
QByteArray* QByteArray_NumberWithQlonglong(long long param1) {
QByteArray _ret = QByteArray::number(static_cast<qint64>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<qint64>(param1)));
}
QByteArray* QByteArray_NumberWithQulonglong(unsigned long long param1) {
QByteArray _ret = QByteArray::number(static_cast<quint64>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<quint64>(param1)));
}
QByteArray* QByteArray_NumberWithDouble(double param1) {
QByteArray _ret = QByteArray::number(static_cast<double>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<double>(param1)));
}
QByteArray* QByteArray_FromRawData(const char* param1, int size) {
QByteArray _ret = QByteArray::fromRawData(param1, static_cast<int>(size));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::fromRawData(param1, static_cast<int>(size)));
}
QByteArray__FromBase64Result* QByteArray_FromBase64Encoding(QByteArray* base64) {
QByteArray::FromBase64Result _ret = QByteArray::fromBase64Encoding(*base64);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray::FromBase64Result*>(new QByteArray::FromBase64Result(_ret));
return new QByteArray::FromBase64Result(QByteArray::fromBase64Encoding(*base64));
}
QByteArray* QByteArray_FromBase64(QByteArray* base64, int options) {
QByteArray _ret = QByteArray::fromBase64(*base64, static_cast<QByteArray::Base64Options>(options));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::fromBase64(*base64, static_cast<QByteArray::Base64Options>(options)));
}
QByteArray* QByteArray_FromBase64WithBase64(QByteArray* base64) {
QByteArray _ret = QByteArray::fromBase64(*base64);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::fromBase64(*base64));
}
QByteArray* QByteArray_FromHex(QByteArray* hexEncoded) {
QByteArray _ret = QByteArray::fromHex(*hexEncoded);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::fromHex(*hexEncoded));
}
QByteArray* QByteArray_FromPercentEncoding(QByteArray* pctEncoded) {
QByteArray _ret = QByteArray::fromPercentEncoding(*pctEncoded);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::fromPercentEncoding(*pctEncoded));
}
char* QByteArray_Begin(QByteArray* self) {
@ -902,33 +840,23 @@ int QByteArray_Compare22(const QByteArray* self, QByteArray* a, uintptr_t cs) {
}
QByteArray* QByteArray_Mid2(const QByteArray* self, int index, int lenVal) {
QByteArray _ret = self->mid(static_cast<int>(index), static_cast<int>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->mid(static_cast<int>(index), static_cast<int>(lenVal)));
}
QByteArray* QByteArray_LeftJustified2(const QByteArray* self, int width, char fill) {
QByteArray _ret = self->leftJustified(static_cast<int>(width), static_cast<char>(fill));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->leftJustified(static_cast<int>(width), static_cast<char>(fill)));
}
QByteArray* QByteArray_LeftJustified3(const QByteArray* self, int width, char fill, bool truncate) {
QByteArray _ret = self->leftJustified(static_cast<int>(width), static_cast<char>(fill), truncate);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->leftJustified(static_cast<int>(width), static_cast<char>(fill), truncate));
}
QByteArray* QByteArray_RightJustified2(const QByteArray* self, int width, char fill) {
QByteArray _ret = self->rightJustified(static_cast<int>(width), static_cast<char>(fill));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->rightJustified(static_cast<int>(width), static_cast<char>(fill)));
}
QByteArray* QByteArray_RightJustified3(const QByteArray* self, int width, char fill, bool truncate) {
QByteArray _ret = self->rightJustified(static_cast<int>(width), static_cast<char>(fill), truncate);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->rightJustified(static_cast<int>(width), static_cast<char>(fill), truncate));
}
int QByteArray_IndexOf24(const QByteArray* self, struct miqt_string* s, int from) {
@ -1014,21 +942,15 @@ double QByteArray_ToDouble1(const QByteArray* self, bool* ok) {
}
QByteArray* QByteArray_ToPercentEncoding1(const QByteArray* self, QByteArray* exclude) {
QByteArray _ret = self->toPercentEncoding(*exclude);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toPercentEncoding(*exclude));
}
QByteArray* QByteArray_ToPercentEncoding2(const QByteArray* self, QByteArray* exclude, QByteArray* include) {
QByteArray _ret = self->toPercentEncoding(*exclude, *include);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toPercentEncoding(*exclude, *include));
}
QByteArray* QByteArray_ToPercentEncoding3(const QByteArray* self, QByteArray* exclude, QByteArray* include, char percent) {
QByteArray _ret = self->toPercentEncoding(*exclude, *include, static_cast<char>(percent));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toPercentEncoding(*exclude, *include, static_cast<char>(percent)));
}
QByteArray* QByteArray_SetNum2(QByteArray* self, int16_t param1, int base) {
@ -1092,51 +1014,35 @@ QByteArray* QByteArray_SetNum32(QByteArray* self, double param1, char f, int pre
}
QByteArray* QByteArray_Number2(int param1, int base) {
QByteArray _ret = QByteArray::number(static_cast<int>(param1), static_cast<int>(base));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<int>(param1), static_cast<int>(base)));
}
QByteArray* QByteArray_Number22(unsigned int param1, int base) {
QByteArray _ret = QByteArray::number(static_cast<uint>(param1), static_cast<int>(base));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<uint>(param1), static_cast<int>(base)));
}
QByteArray* QByteArray_Number23(long long param1, int base) {
QByteArray _ret = QByteArray::number(static_cast<qint64>(param1), static_cast<int>(base));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<qint64>(param1), static_cast<int>(base)));
}
QByteArray* QByteArray_Number24(unsigned long long param1, int base) {
QByteArray _ret = QByteArray::number(static_cast<quint64>(param1), static_cast<int>(base));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<quint64>(param1), static_cast<int>(base)));
}
QByteArray* QByteArray_Number25(double param1, char f) {
QByteArray _ret = QByteArray::number(static_cast<double>(param1), static_cast<char>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<double>(param1), static_cast<char>(f)));
}
QByteArray* QByteArray_Number3(double param1, char f, int prec) {
QByteArray _ret = QByteArray::number(static_cast<double>(param1), static_cast<char>(f), static_cast<int>(prec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::number(static_cast<double>(param1), static_cast<char>(f), static_cast<int>(prec)));
}
QByteArray__FromBase64Result* QByteArray_FromBase64Encoding2(QByteArray* base64, int options) {
QByteArray::FromBase64Result _ret = QByteArray::fromBase64Encoding(*base64, static_cast<QByteArray::Base64Options>(options));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray::FromBase64Result*>(new QByteArray::FromBase64Result(_ret));
return new QByteArray::FromBase64Result(QByteArray::fromBase64Encoding(*base64, static_cast<QByteArray::Base64Options>(options)));
}
QByteArray* QByteArray_FromPercentEncoding2(QByteArray* pctEncoded, char percent) {
QByteArray _ret = QByteArray::fromPercentEncoding(*pctEncoded, static_cast<char>(percent));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QByteArray::fromPercentEncoding(*pctEncoded, static_cast<char>(percent)));
}
void QByteArray_Delete(QByteArray* self) {

View File

@ -38,9 +38,7 @@ int QByteArrayMatcher_IndexIn2(const QByteArrayMatcher* self, const char* str, i
}
QByteArray* QByteArrayMatcher_Pattern(const QByteArrayMatcher* self) {
QByteArray _ret = self->pattern();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->pattern());
}
int QByteArrayMatcher_IndexIn22(const QByteArrayMatcher* self, QByteArray* ba, int from) {

View File

@ -86,21 +86,15 @@ struct miqt_string* QCalendar_Name(const QCalendar* self) {
}
QDate* QCalendar_DateFromParts(const QCalendar* self, int year, int month, int day) {
QDate _ret = self->dateFromParts(static_cast<int>(year), static_cast<int>(month), static_cast<int>(day));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->dateFromParts(static_cast<int>(year), static_cast<int>(month), static_cast<int>(day)));
}
QDate* QCalendar_DateFromPartsWithParts(const QCalendar* self, QCalendar__YearMonthDay* parts) {
QDate _ret = self->dateFromParts(*parts);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->dateFromParts(*parts));
}
QCalendar__YearMonthDay* QCalendar_PartsFromDate(const QCalendar* self, QDate* date) {
QCalendar::YearMonthDay _ret = self->partsFromDate(*date);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCalendar::YearMonthDay*>(new QCalendar::YearMonthDay(_ret));
return new QCalendar::YearMonthDay(self->partsFromDate(*date));
}
int QCalendar_DayOfWeek(const QCalendar* self, QDate* date) {
@ -137,7 +131,7 @@ struct miqt_string* QCalendar_StandaloneWeekDayName(const QCalendar* self, QLoca
struct miqt_array* QCalendar_AvailableCalendars() {
QStringList _ret = QCalendar::availableCalendars();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -39,21 +39,15 @@ struct miqt_string* QCalendarWidget_TrUtf8(const char* s) {
}
QSize* QCalendarWidget_SizeHint(const QCalendarWidget* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QCalendarWidget_MinimumSizeHint(const QCalendarWidget* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
QDate* QCalendarWidget_SelectedDate(const QCalendarWidget* self) {
QDate _ret = self->selectedDate();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->selectedDate());
}
int QCalendarWidget_YearShown(const QCalendarWidget* self) {
@ -65,9 +59,7 @@ int QCalendarWidget_MonthShown(const QCalendarWidget* self) {
}
QDate* QCalendarWidget_MinimumDate(const QCalendarWidget* self) {
QDate _ret = self->minimumDate();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->minimumDate());
}
void QCalendarWidget_SetMinimumDate(QCalendarWidget* self, QDate* date) {
@ -75,9 +67,7 @@ void QCalendarWidget_SetMinimumDate(QCalendarWidget* self, QDate* date) {
}
QDate* QCalendarWidget_MaximumDate(const QCalendarWidget* self) {
QDate _ret = self->maximumDate();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->maximumDate());
}
void QCalendarWidget_SetMaximumDate(QCalendarWidget* self, QDate* date) {
@ -102,9 +92,7 @@ bool QCalendarWidget_IsGridVisible(const QCalendarWidget* self) {
}
QCalendar* QCalendarWidget_Calendar(const QCalendarWidget* self) {
QCalendar _ret = self->calendar();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCalendar*>(new QCalendar(_ret));
return new QCalendar(self->calendar());
}
void QCalendarWidget_SetCalendar(QCalendarWidget* self, QCalendar* calendar) {
@ -139,9 +127,7 @@ void QCalendarWidget_SetVerticalHeaderFormat(QCalendarWidget* self, uintptr_t fo
}
QTextCharFormat* QCalendarWidget_HeaderTextFormat(const QCalendarWidget* self) {
QTextCharFormat _ret = self->headerTextFormat();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTextCharFormat*>(new QTextCharFormat(_ret));
return new QTextCharFormat(self->headerTextFormat());
}
void QCalendarWidget_SetHeaderTextFormat(QCalendarWidget* self, QTextCharFormat* format) {
@ -149,9 +135,7 @@ void QCalendarWidget_SetHeaderTextFormat(QCalendarWidget* self, QTextCharFormat*
}
QTextCharFormat* QCalendarWidget_WeekdayTextFormat(const QCalendarWidget* self, uintptr_t dayOfWeek) {
QTextCharFormat _ret = self->weekdayTextFormat(static_cast<Qt::DayOfWeek>(dayOfWeek));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTextCharFormat*>(new QTextCharFormat(_ret));
return new QTextCharFormat(self->weekdayTextFormat(static_cast<Qt::DayOfWeek>(dayOfWeek)));
}
void QCalendarWidget_SetWeekdayTextFormat(QCalendarWidget* self, uintptr_t dayOfWeek, QTextCharFormat* format) {
@ -159,9 +143,7 @@ void QCalendarWidget_SetWeekdayTextFormat(QCalendarWidget* self, uintptr_t dayOf
}
QTextCharFormat* QCalendarWidget_DateTextFormatWithDate(const QCalendarWidget* self, QDate* date) {
QTextCharFormat _ret = self->dateTextFormat(*date);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTextCharFormat*>(new QTextCharFormat(_ret));
return new QTextCharFormat(self->dateTextFormat(*date));
}
void QCalendarWidget_SetDateTextFormat(QCalendarWidget* self, QDate* date, QTextCharFormat* format) {

View File

@ -29,9 +29,7 @@ void QCborArray_Swap(QCborArray* self, QCborArray* other) {
}
QCborValue* QCborArray_ToCborValue(const QCborArray* self) {
QCborValue _ret = self->toCborValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->toCborValue());
}
size_t QCborArray_Size(const QCborArray* self) {
@ -47,45 +45,31 @@ void QCborArray_Clear(QCborArray* self) {
}
QCborValue* QCborArray_At(const QCborArray* self, size_t i) {
QCborValue _ret = self->at(static_cast<qsizetype>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->at(static_cast<qsizetype>(i)));
}
QCborValue* QCborArray_First(const QCborArray* self) {
QCborValue _ret = self->first();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->first());
}
QCborValue* QCborArray_Last(const QCborArray* self) {
QCborValue _ret = self->last();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->last());
}
QCborValue* QCborArray_OperatorSubscript(const QCborArray* self, size_t i) {
QCborValue _ret = self->operator[](static_cast<qsizetype>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](static_cast<qsizetype>(i)));
}
QCborValueRef* QCborArray_First2(QCborArray* self) {
QCborValueRef _ret = self->first();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->first());
}
QCborValueRef* QCborArray_Last2(QCborArray* self) {
QCborValueRef _ret = self->last();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->last());
}
QCborValueRef* QCborArray_OperatorSubscriptWithQsizetype(QCborArray* self, size_t i) {
QCborValueRef _ret = self->operator[](static_cast<qsizetype>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](static_cast<qsizetype>(i)));
}
void QCborArray_Insert(QCborArray* self, size_t i, QCborValue* value) {
@ -101,15 +85,11 @@ void QCborArray_Append(QCborArray* self, QCborValue* value) {
}
QCborValue* QCborArray_Extract(QCborArray* self, QCborArray__ConstIterator* it) {
QCborValue _ret = self->extract(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->extract(*it));
}
QCborValue* QCborArray_ExtractWithIt(QCborArray* self, QCborArray__Iterator* it) {
QCborValue _ret = self->extract(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->extract(*it));
}
void QCborArray_RemoveAt(QCborArray* self, size_t i) {
@ -117,9 +97,7 @@ void QCborArray_RemoveAt(QCborArray* self, size_t i) {
}
QCborValue* QCborArray_TakeAt(QCborArray* self, size_t i) {
QCborValue _ret = self->takeAt(static_cast<qsizetype>(i));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->takeAt(static_cast<qsizetype>(i)));
}
void QCborArray_RemoveFirst(QCborArray* self) {
@ -131,15 +109,11 @@ void QCborArray_RemoveLast(QCborArray* self) {
}
QCborValue* QCborArray_TakeFirst(QCborArray* self) {
QCborValue _ret = self->takeFirst();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->takeFirst());
}
QCborValue* QCborArray_TakeLast(QCborArray* self) {
QCborValue _ret = self->takeLast();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->takeLast());
}
bool QCborArray_Contains(const QCborArray* self, QCborValue* value) {
@ -163,75 +137,51 @@ bool QCborArray_OperatorLesser(const QCborArray* self, QCborArray* other) {
}
QCborArray__Iterator* QCborArray_Begin(QCborArray* self) {
QCborArray::Iterator _ret = self->begin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->begin());
}
QCborArray__ConstIterator* QCborArray_ConstBegin(const QCborArray* self) {
QCborArray::ConstIterator _ret = self->constBegin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->constBegin());
}
QCborArray__ConstIterator* QCborArray_Begin2(const QCborArray* self) {
QCborArray::ConstIterator _ret = self->begin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->begin());
}
QCborArray__ConstIterator* QCborArray_Cbegin(const QCborArray* self) {
QCborArray::ConstIterator _ret = self->cbegin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->cbegin());
}
QCborArray__Iterator* QCborArray_End(QCborArray* self) {
QCborArray::Iterator _ret = self->end();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->end());
}
QCborArray__ConstIterator* QCborArray_ConstEnd(const QCborArray* self) {
QCborArray::ConstIterator _ret = self->constEnd();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->constEnd());
}
QCborArray__ConstIterator* QCborArray_End2(const QCborArray* self) {
QCborArray::ConstIterator _ret = self->end();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->end());
}
QCborArray__ConstIterator* QCborArray_Cend(const QCborArray* self) {
QCborArray::ConstIterator _ret = self->cend();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->cend());
}
QCborArray__Iterator* QCborArray_Insert2(QCborArray* self, QCborArray__Iterator* before, QCborValue* value) {
QCborArray::Iterator _ret = self->insert(*before, *value);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->insert(*before, *value));
}
QCborArray__Iterator* QCborArray_Insert3(QCborArray* self, QCborArray__ConstIterator* before, QCborValue* value) {
QCborArray::Iterator _ret = self->insert(*before, *value);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->insert(*before, *value));
}
QCborArray__Iterator* QCborArray_Erase(QCborArray* self, QCborArray__Iterator* it) {
QCborArray::Iterator _ret = self->erase(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->erase(*it));
}
QCborArray__Iterator* QCborArray_EraseWithIt(QCborArray* self, QCborArray__ConstIterator* it) {
QCborArray::Iterator _ret = self->erase(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->erase(*it));
}
void QCborArray_PushBack(QCborArray* self, QCborValue* t) {
@ -255,9 +205,7 @@ bool QCborArray_Empty(const QCborArray* self) {
}
QCborArray* QCborArray_OperatorPlus(const QCborArray* self, QCborValue* v) {
QCborArray _ret = self->operator+(*v);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(self->operator+(*v));
}
QCborArray* QCborArray_OperatorPlusAssign(QCborArray* self, QCborValue* v) {
@ -279,21 +227,15 @@ QCborArray* QCborArray_FromStringList(struct miqt_array* /* of struct miqt_strin
for(size_t i = 0; i < list->len; ++i) {
list_QList.push_back(QString::fromUtf8(& list_arr[i]->data, list_arr[i]->len));
}
QCborArray _ret = QCborArray::fromStringList(list_QList);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(QCborArray::fromStringList(list_QList));
}
QCborArray* QCborArray_FromJsonArray(QJsonArray* array) {
QCborArray _ret = QCborArray::fromJsonArray(*array);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(QCborArray::fromJsonArray(*array));
}
QJsonArray* QCborArray_ToJsonArray(const QCborArray* self) {
QJsonArray _ret = self->toJsonArray();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonArray*>(new QJsonArray(_ret));
return new QJsonArray(self->toJsonArray());
}
void QCborArray_Delete(QCborArray* self) {
@ -309,9 +251,7 @@ QCborArray__Iterator* QCborArray__Iterator_new2(QCborArray__Iterator* param1) {
}
QCborValueRef* QCborArray__Iterator_OperatorMultiply(const QCborArray__Iterator* self) {
QCborValueRef _ret = self->operator*();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator*());
}
QCborValueRef* QCborArray__Iterator_OperatorMinusGreater(const QCborArray__Iterator* self) {
@ -319,9 +259,7 @@ QCborValueRef* QCborArray__Iterator_OperatorMinusGreater(const QCborArray__Itera
}
QCborValueRef* QCborArray__Iterator_OperatorSubscript(QCborArray__Iterator* self, size_t j) {
QCborValueRef _ret = self->operator[](static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](static_cast<qsizetype>(j)));
}
bool QCborArray__Iterator_OperatorEqual(const QCborArray__Iterator* self, QCborArray__Iterator* o) {
@ -373,27 +311,19 @@ bool QCborArray__Iterator_OperatorGreaterOrEqualWithOther(const QCborArray__Iter
}
QCborArray__Iterator* QCborArray__Iterator_OperatorPlusPlus(QCborArray__Iterator* self, int param1) {
QCborArray::Iterator _ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->operator++(static_cast<int>(param1)));
}
QCborArray__Iterator* QCborArray__Iterator_OperatorMinusMinus(QCborArray__Iterator* self, int param1) {
QCborArray::Iterator _ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->operator--(static_cast<int>(param1)));
}
QCborArray__Iterator* QCborArray__Iterator_OperatorPlus(const QCborArray__Iterator* self, size_t j) {
QCborArray::Iterator _ret = self->operator+(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->operator+(static_cast<qsizetype>(j)));
}
QCborArray__Iterator* QCborArray__Iterator_OperatorMinus(const QCborArray__Iterator* self, size_t j) {
QCborArray::Iterator _ret = self->operator-(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::Iterator*>(new QCborArray::Iterator(_ret));
return new QCborArray::Iterator(self->operator-(static_cast<qsizetype>(j)));
}
size_t QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(const QCborArray__Iterator* self, QCborArray__Iterator* j) {
@ -413,9 +343,7 @@ QCborArray__ConstIterator* QCborArray__ConstIterator_new2(QCborArray__ConstItera
}
QCborValueRef* QCborArray__ConstIterator_OperatorMultiply(const QCborArray__ConstIterator* self) {
QCborValueRef _ret = self->operator*();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator*());
}
QCborValueRef* QCborArray__ConstIterator_OperatorMinusGreater(const QCborArray__ConstIterator* self) {
@ -423,9 +351,7 @@ QCborValueRef* QCborArray__ConstIterator_OperatorMinusGreater(const QCborArray__
}
QCborValueRef* QCborArray__ConstIterator_OperatorSubscript(QCborArray__ConstIterator* self, size_t j) {
QCborValueRef _ret = self->operator[](static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](static_cast<qsizetype>(j)));
}
bool QCborArray__ConstIterator_OperatorEqual(const QCborArray__ConstIterator* self, QCborArray__Iterator* o) {
@ -477,27 +403,19 @@ bool QCborArray__ConstIterator_OperatorGreaterOrEqualWithOther(const QCborArray_
}
QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorPlusPlus(QCborArray__ConstIterator* self, int param1) {
QCborArray::ConstIterator _ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->operator++(static_cast<int>(param1)));
}
QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorMinusMinus(QCborArray__ConstIterator* self, int param1) {
QCborArray::ConstIterator _ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->operator--(static_cast<int>(param1)));
}
QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorPlus(const QCborArray__ConstIterator* self, size_t j) {
QCborArray::ConstIterator _ret = self->operator+(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->operator+(static_cast<qsizetype>(j)));
}
QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorMinus(const QCborArray__ConstIterator* self, size_t j) {
QCborArray::ConstIterator _ret = self->operator-(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray::ConstIterator*>(new QCborArray::ConstIterator(_ret));
return new QCborArray::ConstIterator(self->operator-(static_cast<qsizetype>(j)));
}
size_t QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(const QCborArray__ConstIterator* self, QCborArray__ConstIterator* j) {

View File

@ -29,9 +29,7 @@ void QCborMap_Swap(QCborMap* self, QCborMap* other) {
}
QCborValue* QCborMap_ToCborValue(const QCborMap* self) {
QCborValue _ret = self->toCborValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->toCborValue());
}
size_t QCborMap_Size(const QCborMap* self) {
@ -48,8 +46,8 @@ void QCborMap_Clear(QCborMap* self) {
struct miqt_array* QCborMap_Keys(const QCborMap* self) {
QVector<QCborValue> _ret = self->keys();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QCborValue** _arr = static_cast<QCborValue**>(malloc(sizeof(QCborValue**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QCborValue** _arr = static_cast<QCborValue**>(malloc(sizeof(QCborValue*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QCborValue(_ret[i]);
}
@ -60,79 +58,55 @@ struct miqt_array* QCborMap_Keys(const QCborMap* self) {
}
QCborValue* QCborMap_Value(const QCborMap* self, long long key) {
QCborValue _ret = self->value(static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->value(static_cast<qint64>(key)));
}
QCborValue* QCborMap_Value2(const QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValue _ret = self->value(key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->value(key_QString));
}
QCborValue* QCborMap_Value3(const QCborMap* self, QCborValue* key) {
QCborValue _ret = self->value(*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->value(*key));
}
QCborValue* QCborMap_OperatorSubscript(const QCborMap* self, long long key) {
QCborValue _ret = self->operator[](static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](static_cast<qint64>(key)));
}
QCborValue* QCborMap_OperatorSubscript2(const QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValue _ret = self->operator[](key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](key_QString));
}
QCborValue* QCborMap_OperatorSubscript3(const QCborMap* self, QCborValue* key) {
QCborValue _ret = self->operator[](*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](*key));
}
QCborValueRef* QCborMap_OperatorSubscript4(QCborMap* self, long long key) {
QCborValueRef _ret = self->operator[](static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](static_cast<qint64>(key)));
}
QCborValueRef* QCborMap_OperatorSubscript6(QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValueRef _ret = self->operator[](key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](key_QString));
}
QCborValueRef* QCborMap_OperatorSubscript7(QCborMap* self, QCborValue* key) {
QCborValueRef _ret = self->operator[](*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](*key));
}
QCborValue* QCborMap_Take(QCborMap* self, long long key) {
QCborValue _ret = self->take(static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->take(static_cast<qint64>(key)));
}
QCborValue* QCborMap_Take2(QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValue _ret = self->take(key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->take(key_QString));
}
QCborValue* QCborMap_Take3(QCborMap* self, QCborValue* key) {
QCborValue _ret = self->take(*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->take(*key));
}
void QCborMap_Remove(QCborMap* self, long long key) {
@ -178,75 +152,51 @@ bool QCborMap_OperatorLesser(const QCborMap* self, QCborMap* other) {
}
QCborMap__Iterator* QCborMap_Begin(QCborMap* self) {
QCborMap::Iterator _ret = self->begin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->begin());
}
QCborMap__ConstIterator* QCborMap_ConstBegin(const QCborMap* self) {
QCborMap::ConstIterator _ret = self->constBegin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->constBegin());
}
QCborMap__ConstIterator* QCborMap_Begin2(const QCborMap* self) {
QCborMap::ConstIterator _ret = self->begin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->begin());
}
QCborMap__ConstIterator* QCborMap_Cbegin(const QCborMap* self) {
QCborMap::ConstIterator _ret = self->cbegin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->cbegin());
}
QCborMap__Iterator* QCborMap_End(QCborMap* self) {
QCborMap::Iterator _ret = self->end();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->end());
}
QCborMap__ConstIterator* QCborMap_ConstEnd(const QCborMap* self) {
QCborMap::ConstIterator _ret = self->constEnd();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->constEnd());
}
QCborMap__ConstIterator* QCborMap_End2(const QCborMap* self) {
QCborMap::ConstIterator _ret = self->end();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->end());
}
QCborMap__ConstIterator* QCborMap_Cend(const QCborMap* self) {
QCborMap::ConstIterator _ret = self->cend();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->cend());
}
QCborMap__Iterator* QCborMap_Erase(QCborMap* self, QCborMap__Iterator* it) {
QCborMap::Iterator _ret = self->erase(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->erase(*it));
}
QCborMap__Iterator* QCborMap_EraseWithIt(QCborMap* self, QCborMap__ConstIterator* it) {
QCborMap::Iterator _ret = self->erase(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->erase(*it));
}
QCborValue* QCborMap_Extract(QCborMap* self, QCborMap__Iterator* it) {
QCborValue _ret = self->extract(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->extract(*it));
}
QCborValue* QCborMap_ExtractWithIt(QCborMap* self, QCborMap__ConstIterator* it) {
QCborValue _ret = self->extract(*it);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->extract(*it));
}
bool QCborMap_Empty(const QCborMap* self) {
@ -254,91 +204,63 @@ bool QCborMap_Empty(const QCborMap* self) {
}
QCborMap__Iterator* QCborMap_Find(QCborMap* self, long long key) {
QCborMap::Iterator _ret = self->find(static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->find(static_cast<qint64>(key)));
}
QCborMap__Iterator* QCborMap_Find2(QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborMap::Iterator _ret = self->find(key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->find(key_QString));
}
QCborMap__Iterator* QCborMap_Find3(QCborMap* self, QCborValue* key) {
QCborMap::Iterator _ret = self->find(*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->find(*key));
}
QCborMap__ConstIterator* QCborMap_ConstFind(const QCborMap* self, long long key) {
QCborMap::ConstIterator _ret = self->constFind(static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->constFind(static_cast<qint64>(key)));
}
QCborMap__ConstIterator* QCborMap_ConstFind2(const QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborMap::ConstIterator _ret = self->constFind(key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->constFind(key_QString));
}
QCborMap__ConstIterator* QCborMap_ConstFind3(const QCborMap* self, QCborValue* key) {
QCborMap::ConstIterator _ret = self->constFind(*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->constFind(*key));
}
QCborMap__ConstIterator* QCborMap_Find4(const QCborMap* self, long long key) {
QCborMap::ConstIterator _ret = self->find(static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->find(static_cast<qint64>(key)));
}
QCborMap__ConstIterator* QCborMap_Find6(const QCborMap* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborMap::ConstIterator _ret = self->find(key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->find(key_QString));
}
QCborMap__ConstIterator* QCborMap_Find7(const QCborMap* self, QCborValue* key) {
QCborMap::ConstIterator _ret = self->find(*key);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->find(*key));
}
QCborMap__Iterator* QCborMap_Insert(QCborMap* self, long long key, QCborValue* value_) {
QCborMap::Iterator _ret = self->insert(static_cast<qint64>(key), *value_);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->insert(static_cast<qint64>(key), *value_));
}
QCborMap__Iterator* QCborMap_Insert3(QCborMap* self, struct miqt_string* key, QCborValue* value_) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborMap::Iterator _ret = self->insert(key_QString, *value_);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->insert(key_QString, *value_));
}
QCborMap__Iterator* QCborMap_Insert4(QCborMap* self, QCborValue* key, QCborValue* value_) {
QCborMap::Iterator _ret = self->insert(*key, *value_);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->insert(*key, *value_));
}
QCborMap* QCborMap_FromJsonObject(QJsonObject* o) {
QCborMap _ret = QCborMap::fromJsonObject(*o);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap*>(new QCborMap(_ret));
return new QCborMap(QCborMap::fromJsonObject(*o));
}
QJsonObject* QCborMap_ToJsonObject(const QCborMap* self) {
QJsonObject _ret = self->toJsonObject();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonObject*>(new QJsonObject(_ret));
return new QJsonObject(self->toJsonObject());
}
void QCborMap_Delete(QCborMap* self) {
@ -358,15 +280,11 @@ QCborValueRef* QCborMap__Iterator_OperatorMinusGreater(const QCborMap__Iterator*
}
QCborValue* QCborMap__Iterator_Key(const QCborMap__Iterator* self) {
QCborValue _ret = self->key();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->key());
}
QCborValueRef* QCborMap__Iterator_Value(const QCborMap__Iterator* self) {
QCborValueRef _ret = self->value();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->value());
}
bool QCborMap__Iterator_OperatorEqual(const QCborMap__Iterator* self, QCborMap__Iterator* o) {
@ -418,27 +336,19 @@ bool QCborMap__Iterator_OperatorGreaterOrEqualWithOther(const QCborMap__Iterator
}
QCborMap__Iterator* QCborMap__Iterator_OperatorPlusPlus(QCborMap__Iterator* self, int param1) {
QCborMap::Iterator _ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->operator++(static_cast<int>(param1)));
}
QCborMap__Iterator* QCborMap__Iterator_OperatorMinusMinus(QCborMap__Iterator* self, int param1) {
QCborMap::Iterator _ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->operator--(static_cast<int>(param1)));
}
QCborMap__Iterator* QCborMap__Iterator_OperatorPlus(const QCborMap__Iterator* self, size_t j) {
QCborMap::Iterator _ret = self->operator+(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->operator+(static_cast<qsizetype>(j)));
}
QCborMap__Iterator* QCborMap__Iterator_OperatorMinus(const QCborMap__Iterator* self, size_t j) {
QCborMap::Iterator _ret = self->operator-(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::Iterator*>(new QCborMap::Iterator(_ret));
return new QCborMap::Iterator(self->operator-(static_cast<qsizetype>(j)));
}
size_t QCborMap__Iterator_OperatorMinusWithQCborMapIterator(const QCborMap__Iterator* self, QCborMap__Iterator* j) {
@ -462,15 +372,11 @@ QCborValueRef* QCborMap__ConstIterator_OperatorMinusGreater(const QCborMap__Cons
}
QCborValue* QCborMap__ConstIterator_Key(const QCborMap__ConstIterator* self) {
QCborValue _ret = self->key();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->key());
}
QCborValueRef* QCborMap__ConstIterator_Value(const QCborMap__ConstIterator* self) {
QCborValueRef _ret = self->value();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->value());
}
bool QCborMap__ConstIterator_OperatorEqual(const QCborMap__ConstIterator* self, QCborMap__Iterator* o) {
@ -522,27 +428,19 @@ bool QCborMap__ConstIterator_OperatorGreaterOrEqualWithOther(const QCborMap__Con
}
QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorPlusPlus(QCborMap__ConstIterator* self, int param1) {
QCborMap::ConstIterator _ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->operator++(static_cast<int>(param1)));
}
QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorMinusMinus(QCborMap__ConstIterator* self, int param1) {
QCborMap::ConstIterator _ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->operator--(static_cast<int>(param1)));
}
QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorPlus(const QCborMap__ConstIterator* self, size_t j) {
QCborMap::ConstIterator _ret = self->operator+(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->operator+(static_cast<qsizetype>(j)));
}
QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorMinus(const QCborMap__ConstIterator* self, size_t j) {
QCborMap::ConstIterator _ret = self->operator-(static_cast<qsizetype>(j));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap::ConstIterator*>(new QCborMap::ConstIterator(_ret));
return new QCborMap::ConstIterator(self->operator-(static_cast<qsizetype>(j)));
}
size_t QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(const QCborMap__ConstIterator* self, QCborMap__ConstIterator* j) {

View File

@ -59,9 +59,7 @@ void QCborStreamReader_Reset(QCborStreamReader* self) {
}
QCborError* QCborStreamReader_LastError(QCborStreamReader* self) {
QCborError _ret = self->lastError();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborError*>(new QCborError(_ret));
return new QCborError(self->lastError());
}
long long QCborStreamReader_CurrentOffset(const QCborStreamReader* self) {

View File

@ -233,15 +233,11 @@ QCborTag QCborValue_Tag(const QCborValue* self) {
}
QCborValue* QCborValue_TaggedValue(const QCborValue* self) {
QCborValue _ret = self->taggedValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->taggedValue());
}
QByteArray* QCborValue_ToByteArray(const QCborValue* self) {
QByteArray _ret = self->toByteArray();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toByteArray());
}
struct miqt_string* QCborValue_ToString(const QCborValue* self) {
@ -252,77 +248,53 @@ struct miqt_string* QCborValue_ToString(const QCborValue* self) {
}
QDateTime* QCborValue_ToDateTime(const QCborValue* self) {
QDateTime _ret = self->toDateTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toDateTime());
}
QUrl* QCborValue_ToUrl(const QCborValue* self) {
QUrl _ret = self->toUrl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->toUrl());
}
QRegularExpression* QCborValue_ToRegularExpression(const QCborValue* self) {
QRegularExpression _ret = self->toRegularExpression();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRegularExpression*>(new QRegularExpression(_ret));
return new QRegularExpression(self->toRegularExpression());
}
QUuid* QCborValue_ToUuid(const QCborValue* self) {
QUuid _ret = self->toUuid();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUuid*>(new QUuid(_ret));
return new QUuid(self->toUuid());
}
QCborArray* QCborValue_ToArray(const QCborValue* self) {
QCborArray _ret = self->toArray();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(self->toArray());
}
QCborArray* QCborValue_ToArrayWithDefaultValue(const QCborValue* self, QCborArray* defaultValue) {
QCborArray _ret = self->toArray(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(self->toArray(*defaultValue));
}
QCborMap* QCborValue_ToMap(const QCborValue* self) {
QCborMap _ret = self->toMap();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap*>(new QCborMap(_ret));
return new QCborMap(self->toMap());
}
QCborMap* QCborValue_ToMapWithDefaultValue(const QCborValue* self, QCborMap* defaultValue) {
QCborMap _ret = self->toMap(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap*>(new QCborMap(_ret));
return new QCborMap(self->toMap(*defaultValue));
}
QCborValue* QCborValue_OperatorSubscript(const QCborValue* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValue _ret = self->operator[](key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](key_QString));
}
QCborValue* QCborValue_OperatorSubscript2(const QCborValue* self, long long key) {
QCborValue _ret = self->operator[](static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](static_cast<qint64>(key)));
}
QCborValueRef* QCborValue_OperatorSubscript3(QCborValue* self, long long key) {
QCborValueRef _ret = self->operator[](static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](static_cast<qint64>(key)));
}
QCborValueRef* QCborValue_OperatorSubscript5(QCborValue* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValueRef _ret = self->operator[](key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](key_QString));
}
int QCborValue_Compare(const QCborValue* self, QCborValue* other) {
@ -342,57 +314,39 @@ bool QCborValue_OperatorLesser(const QCborValue* self, QCborValue* other) {
}
QCborValue* QCborValue_FromVariant(QVariant* variant) {
QCborValue _ret = QCborValue::fromVariant(*variant);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromVariant(*variant));
}
QVariant* QCborValue_ToVariant(const QCborValue* self) {
QVariant _ret = self->toVariant();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->toVariant());
}
QCborValue* QCborValue_FromJsonValue(QJsonValue* v) {
QCborValue _ret = QCborValue::fromJsonValue(*v);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromJsonValue(*v));
}
QJsonValue* QCborValue_ToJsonValue(const QCborValue* self) {
QJsonValue _ret = self->toJsonValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(_ret));
return new QJsonValue(self->toJsonValue());
}
QCborValue* QCborValue_FromCbor(QCborStreamReader* reader) {
QCborValue _ret = QCborValue::fromCbor(*reader);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(*reader));
}
QCborValue* QCborValue_FromCborWithBa(QByteArray* ba) {
QCborValue _ret = QCborValue::fromCbor(*ba);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(*ba));
}
QCborValue* QCborValue_FromCbor2(const char* data, size_t lenVal) {
QCborValue _ret = QCborValue::fromCbor(data, static_cast<qsizetype>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(data, static_cast<qsizetype>(lenVal)));
}
QCborValue* QCborValue_FromCbor3(const unsigned char* data, size_t lenVal) {
QCborValue _ret = QCborValue::fromCbor(static_cast<const quint8*>(data), static_cast<qsizetype>(lenVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(static_cast<const quint8*>(data), static_cast<qsizetype>(lenVal)));
}
QByteArray* QCborValue_ToCbor(QCborValue* self) {
QByteArray _ret = self->toCbor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toCbor());
}
void QCborValue_ToCborWithWriter(QCborValue* self, QCborStreamWriter* writer) {
@ -427,15 +381,11 @@ QCborTag QCborValue_Tag1(const QCborValue* self, QCborTag defaultValue) {
}
QCborValue* QCborValue_TaggedValue1(const QCborValue* self, QCborValue* defaultValue) {
QCborValue _ret = self->taggedValue(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->taggedValue(*defaultValue));
}
QByteArray* QCborValue_ToByteArray1(const QCborValue* self, QByteArray* defaultValue) {
QByteArray _ret = self->toByteArray(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toByteArray(*defaultValue));
}
struct miqt_string* QCborValue_ToString1(const QCborValue* self, struct miqt_string* defaultValue) {
@ -447,51 +397,35 @@ struct miqt_string* QCborValue_ToString1(const QCborValue* self, struct miqt_str
}
QDateTime* QCborValue_ToDateTime1(const QCborValue* self, QDateTime* defaultValue) {
QDateTime _ret = self->toDateTime(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toDateTime(*defaultValue));
}
QUrl* QCborValue_ToUrl1(const QCborValue* self, QUrl* defaultValue) {
QUrl _ret = self->toUrl(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->toUrl(*defaultValue));
}
QRegularExpression* QCborValue_ToRegularExpression1(const QCborValue* self, QRegularExpression* defaultValue) {
QRegularExpression _ret = self->toRegularExpression(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRegularExpression*>(new QRegularExpression(_ret));
return new QRegularExpression(self->toRegularExpression(*defaultValue));
}
QUuid* QCborValue_ToUuid1(const QCborValue* self, QUuid* defaultValue) {
QUuid _ret = self->toUuid(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUuid*>(new QUuid(_ret));
return new QUuid(self->toUuid(*defaultValue));
}
QCborValue* QCborValue_FromCbor22(QByteArray* ba, QCborParserError* error) {
QCborValue _ret = QCborValue::fromCbor(*ba, error);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(*ba, error));
}
QCborValue* QCborValue_FromCbor32(const char* data, size_t lenVal, QCborParserError* error) {
QCborValue _ret = QCborValue::fromCbor(data, static_cast<qsizetype>(lenVal), error);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(data, static_cast<qsizetype>(lenVal), error));
}
QCborValue* QCborValue_FromCbor33(const unsigned char* data, size_t lenVal, QCborParserError* error) {
QCborValue _ret = QCborValue::fromCbor(static_cast<const quint8*>(data), static_cast<qsizetype>(lenVal), error);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(QCborValue::fromCbor(static_cast<const quint8*>(data), static_cast<qsizetype>(lenVal), error));
}
QByteArray* QCborValue_ToCbor1(QCborValue* self, int opt) {
QByteArray _ret = self->toCbor(static_cast<QCborValue::EncodingOptions>(opt));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toCbor(static_cast<QCborValue::EncodingOptions>(opt)));
}
void QCborValue_ToCbor2(QCborValue* self, QCborStreamWriter* writer, int opt) {
@ -611,9 +545,7 @@ QCborTag QCborValueRef_Tag(const QCborValueRef* self) {
}
QCborValue* QCborValueRef_TaggedValue(const QCborValueRef* self) {
QCborValue _ret = self->taggedValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->taggedValue());
}
long long QCborValueRef_ToInteger(const QCborValueRef* self) {
@ -629,9 +561,7 @@ double QCborValueRef_ToDouble(const QCborValueRef* self) {
}
QByteArray* QCborValueRef_ToByteArray(const QCborValueRef* self) {
QByteArray _ret = self->toByteArray();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toByteArray());
}
struct miqt_string* QCborValueRef_ToString(const QCborValueRef* self) {
@ -642,77 +572,53 @@ struct miqt_string* QCborValueRef_ToString(const QCborValueRef* self) {
}
QDateTime* QCborValueRef_ToDateTime(const QCborValueRef* self) {
QDateTime _ret = self->toDateTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toDateTime());
}
QUrl* QCborValueRef_ToUrl(const QCborValueRef* self) {
QUrl _ret = self->toUrl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->toUrl());
}
QRegularExpression* QCborValueRef_ToRegularExpression(const QCborValueRef* self) {
QRegularExpression _ret = self->toRegularExpression();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRegularExpression*>(new QRegularExpression(_ret));
return new QRegularExpression(self->toRegularExpression());
}
QUuid* QCborValueRef_ToUuid(const QCborValueRef* self) {
QUuid _ret = self->toUuid();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUuid*>(new QUuid(_ret));
return new QUuid(self->toUuid());
}
QCborArray* QCborValueRef_ToArray(const QCborValueRef* self) {
QCborArray _ret = self->toArray();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(self->toArray());
}
QCborArray* QCborValueRef_ToArrayWithQCborArray(const QCborValueRef* self, QCborArray* a) {
QCborArray _ret = self->toArray(*a);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborArray*>(new QCborArray(_ret));
return new QCborArray(self->toArray(*a));
}
QCborMap* QCborValueRef_ToMap(const QCborValueRef* self) {
QCborMap _ret = self->toMap();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap*>(new QCborMap(_ret));
return new QCborMap(self->toMap());
}
QCborMap* QCborValueRef_ToMapWithQCborMap(const QCborValueRef* self, QCborMap* m) {
QCborMap _ret = self->toMap(*m);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborMap*>(new QCborMap(_ret));
return new QCborMap(self->toMap(*m));
}
QCborValue* QCborValueRef_OperatorSubscript(const QCborValueRef* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValue _ret = self->operator[](key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](key_QString));
}
QCborValue* QCborValueRef_OperatorSubscript2(const QCborValueRef* self, long long key) {
QCborValue _ret = self->operator[](static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->operator[](static_cast<qint64>(key)));
}
QCborValueRef* QCborValueRef_OperatorSubscript3(QCborValueRef* self, long long key) {
QCborValueRef _ret = self->operator[](static_cast<qint64>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](static_cast<qint64>(key)));
}
QCborValueRef* QCborValueRef_OperatorSubscript5(QCborValueRef* self, struct miqt_string* key) {
QString key_QString = QString::fromUtf8(&key->data, key->len);
QCborValueRef _ret = self->operator[](key_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValueRef*>(new QCborValueRef(_ret));
return new QCborValueRef(self->operator[](key_QString));
}
int QCborValueRef_Compare(const QCborValueRef* self, QCborValue* other) {
@ -732,21 +638,15 @@ bool QCborValueRef_OperatorLesser(const QCborValueRef* self, QCborValue* other)
}
QVariant* QCborValueRef_ToVariant(const QCborValueRef* self) {
QVariant _ret = self->toVariant();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->toVariant());
}
QJsonValue* QCborValueRef_ToJsonValue(const QCborValueRef* self) {
QJsonValue _ret = self->toJsonValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QJsonValue*>(new QJsonValue(_ret));
return new QJsonValue(self->toJsonValue());
}
QByteArray* QCborValueRef_ToCbor(QCborValueRef* self) {
QByteArray _ret = self->toCbor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toCbor());
}
void QCborValueRef_ToCborWithWriter(QCborValueRef* self, QCborStreamWriter* writer) {
@ -765,9 +665,7 @@ QCborTag QCborValueRef_Tag1(const QCborValueRef* self, QCborTag defaultValue) {
}
QCborValue* QCborValueRef_TaggedValue1(const QCborValueRef* self, QCborValue* defaultValue) {
QCborValue _ret = self->taggedValue(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCborValue*>(new QCborValue(_ret));
return new QCborValue(self->taggedValue(*defaultValue));
}
long long QCborValueRef_ToInteger1(const QCborValueRef* self, long long defaultValue) {
@ -783,9 +681,7 @@ double QCborValueRef_ToDouble1(const QCborValueRef* self, double defaultValue) {
}
QByteArray* QCborValueRef_ToByteArray1(const QCborValueRef* self, QByteArray* defaultValue) {
QByteArray _ret = self->toByteArray(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toByteArray(*defaultValue));
}
struct miqt_string* QCborValueRef_ToString1(const QCborValueRef* self, struct miqt_string* defaultValue) {
@ -797,33 +693,23 @@ struct miqt_string* QCborValueRef_ToString1(const QCborValueRef* self, struct mi
}
QDateTime* QCborValueRef_ToDateTime1(const QCborValueRef* self, QDateTime* defaultValue) {
QDateTime _ret = self->toDateTime(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toDateTime(*defaultValue));
}
QUrl* QCborValueRef_ToUrl1(const QCborValueRef* self, QUrl* defaultValue) {
QUrl _ret = self->toUrl(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->toUrl(*defaultValue));
}
QRegularExpression* QCborValueRef_ToRegularExpression1(const QCborValueRef* self, QRegularExpression* defaultValue) {
QRegularExpression _ret = self->toRegularExpression(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRegularExpression*>(new QRegularExpression(_ret));
return new QRegularExpression(self->toRegularExpression(*defaultValue));
}
QUuid* QCborValueRef_ToUuid1(const QCborValueRef* self, QUuid* defaultValue) {
QUuid _ret = self->toUuid(*defaultValue);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUuid*>(new QUuid(_ret));
return new QUuid(self->toUuid(*defaultValue));
}
QByteArray* QCborValueRef_ToCbor1(QCborValueRef* self, int opt) {
QByteArray _ret = self->toCbor(static_cast<QCborValue::EncodingOptions>(opt));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->toCbor(static_cast<QCborValue::EncodingOptions>(opt)));
}
void QCborValueRef_ToCbor2(QCborValueRef* self, QCborStreamWriter* writer, int opt) {

View File

@ -96,9 +96,7 @@ unsigned char QChar_CombiningClass(const QChar* self) {
}
QChar* QChar_MirroredChar(const QChar* self) {
QChar _ret = self->mirroredChar();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(self->mirroredChar());
}
bool QChar_HasMirrored(const QChar* self) {
@ -122,27 +120,19 @@ int QChar_DigitValue(const QChar* self) {
}
QChar* QChar_ToLower(const QChar* self) {
QChar _ret = self->toLower();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(self->toLower());
}
QChar* QChar_ToUpper(const QChar* self) {
QChar _ret = self->toUpper();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(self->toUpper());
}
QChar* QChar_ToTitleCase(const QChar* self) {
QChar _ret = self->toTitleCase();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(self->toTitleCase());
}
QChar* QChar_ToCaseFolded(const QChar* self) {
QChar _ret = self->toCaseFolded();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(self->toCaseFolded());
}
uintptr_t QChar_Script(const QChar* self) {
@ -164,9 +154,7 @@ uint16_t QChar_Unicode(const QChar* self) {
}
QChar* QChar_FromLatin1(char c) {
QChar _ret = QChar::fromLatin1(static_cast<char>(c));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(QChar::fromLatin1(static_cast<char>(c)));
}
bool QChar_IsNull(const QChar* self) {

View File

@ -46,15 +46,11 @@ struct miqt_string* QCheckBox_TrUtf8(const char* s) {
}
QSize* QCheckBox_SizeHint(const QCheckBox* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QCheckBox_MinimumSizeHint(const QCheckBox* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
void QCheckBox_SetTristate(QCheckBox* self) {

View File

@ -81,15 +81,11 @@ void QClipboard_SetMimeData(QClipboard* self, QMimeData* data) {
}
QImage* QClipboard_Image(const QClipboard* self) {
QImage _ret = self->image();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->image());
}
QPixmap* QClipboard_Pixmap(const QClipboard* self) {
QPixmap _ret = self->pixmap();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap());
}
void QClipboard_SetImage(QClipboard* self, QImage* param1) {
@ -203,15 +199,11 @@ void QClipboard_SetMimeData2(QClipboard* self, QMimeData* data, uintptr_t mode)
}
QImage* QClipboard_Image1(const QClipboard* self, uintptr_t mode) {
QImage _ret = self->image(static_cast<QClipboard::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->image(static_cast<QClipboard::Mode>(mode)));
}
QPixmap* QClipboard_Pixmap1(const QClipboard* self, uintptr_t mode) {
QPixmap _ret = self->pixmap(static_cast<QClipboard::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<QClipboard::Mode>(mode)));
}
void QClipboard_SetImage2(QClipboard* self, QImage* param1, uintptr_t mode) {

View File

@ -54,9 +54,7 @@ void QCollator_SetLocale(QCollator* self, QLocale* locale) {
}
QLocale* QCollator_Locale(const QCollator* self) {
QLocale _ret = self->locale();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QLocale*>(new QLocale(_ret));
return new QLocale(self->locale());
}
uintptr_t QCollator_CaseSensitivity(const QCollator* self) {
@ -102,9 +100,7 @@ bool QCollator_OperatorCall(const QCollator* self, struct miqt_string* s1, struc
QCollatorSortKey* QCollator_SortKey(const QCollator* self, struct miqt_string* stringVal) {
QString stringVal_QString = QString::fromUtf8(&stringVal->data, stringVal->len);
QCollatorSortKey _ret = self->sortKey(stringVal_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCollatorSortKey*>(new QCollatorSortKey(_ret));
return new QCollatorSortKey(self->sortKey(stringVal_QString));
}
void QCollator_Delete(QCollator* self) {

View File

@ -90,7 +90,7 @@ void QColor_SetNamedColor(QColor* self, struct miqt_string* name) {
struct miqt_array* QColor_ColorNames() {
QStringList _ret = QColor::colorNames();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -190,9 +190,7 @@ void QColor_SetRgbF(QColor* self, double r, double g, double b) {
}
QRgba64* QColor_Rgba64(const QColor* self) {
QRgba64 _ret = self->rgba64();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRgba64*>(new QRgba64(_ret));
return new QRgba64(self->rgba64());
}
void QColor_SetRgba64(QColor* self, QRgba64* rgba) {
@ -368,135 +366,91 @@ void QColor_SetHslF(QColor* self, double h, double s, double l) {
}
QColor* QColor_ToRgb(const QColor* self) {
QColor _ret = self->toRgb();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->toRgb());
}
QColor* QColor_ToHsv(const QColor* self) {
QColor _ret = self->toHsv();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->toHsv());
}
QColor* QColor_ToCmyk(const QColor* self) {
QColor _ret = self->toCmyk();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->toCmyk());
}
QColor* QColor_ToHsl(const QColor* self) {
QColor _ret = self->toHsl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->toHsl());
}
QColor* QColor_ToExtendedRgb(const QColor* self) {
QColor _ret = self->toExtendedRgb();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->toExtendedRgb());
}
QColor* QColor_ConvertTo(const QColor* self, uintptr_t colorSpec) {
QColor _ret = self->convertTo(static_cast<QColor::Spec>(colorSpec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->convertTo(static_cast<QColor::Spec>(colorSpec)));
}
QColor* QColor_FromRgb(unsigned int rgb) {
QColor _ret = QColor::fromRgb(static_cast<QRgb>(rgb));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgb(static_cast<QRgb>(rgb)));
}
QColor* QColor_FromRgba(unsigned int rgba) {
QColor _ret = QColor::fromRgba(static_cast<QRgb>(rgba));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgba(static_cast<QRgb>(rgba)));
}
QColor* QColor_FromRgb2(int r, int g, int b) {
QColor _ret = QColor::fromRgb(static_cast<int>(r), static_cast<int>(g), static_cast<int>(b));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgb(static_cast<int>(r), static_cast<int>(g), static_cast<int>(b)));
}
QColor* QColor_FromRgbF(double r, double g, double b) {
QColor _ret = QColor::fromRgbF(static_cast<qreal>(r), static_cast<qreal>(g), static_cast<qreal>(b));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgbF(static_cast<qreal>(r), static_cast<qreal>(g), static_cast<qreal>(b)));
}
QColor* QColor_FromRgba64(uint16_t r, uint16_t g, uint16_t b) {
QColor _ret = QColor::fromRgba64(static_cast<ushort>(r), static_cast<ushort>(g), static_cast<ushort>(b));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgba64(static_cast<ushort>(r), static_cast<ushort>(g), static_cast<ushort>(b)));
}
QColor* QColor_FromRgba64WithRgba(QRgba64* rgba) {
QColor _ret = QColor::fromRgba64(*rgba);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgba64(*rgba));
}
QColor* QColor_FromHsv(int h, int s, int v) {
QColor _ret = QColor::fromHsv(static_cast<int>(h), static_cast<int>(s), static_cast<int>(v));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHsv(static_cast<int>(h), static_cast<int>(s), static_cast<int>(v)));
}
QColor* QColor_FromHsvF(double h, double s, double v) {
QColor _ret = QColor::fromHsvF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(v));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHsvF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(v)));
}
QColor* QColor_FromCmyk(int c, int m, int y, int k) {
QColor _ret = QColor::fromCmyk(static_cast<int>(c), static_cast<int>(m), static_cast<int>(y), static_cast<int>(k));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromCmyk(static_cast<int>(c), static_cast<int>(m), static_cast<int>(y), static_cast<int>(k)));
}
QColor* QColor_FromCmykF(double c, double m, double y, double k) {
QColor _ret = QColor::fromCmykF(static_cast<qreal>(c), static_cast<qreal>(m), static_cast<qreal>(y), static_cast<qreal>(k));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromCmykF(static_cast<qreal>(c), static_cast<qreal>(m), static_cast<qreal>(y), static_cast<qreal>(k)));
}
QColor* QColor_FromHsl(int h, int s, int l) {
QColor _ret = QColor::fromHsl(static_cast<int>(h), static_cast<int>(s), static_cast<int>(l));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHsl(static_cast<int>(h), static_cast<int>(s), static_cast<int>(l)));
}
QColor* QColor_FromHslF(double h, double s, double l) {
QColor _ret = QColor::fromHslF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(l));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHslF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(l)));
}
QColor* QColor_Light(const QColor* self) {
QColor _ret = self->light();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->light());
}
QColor* QColor_Dark(const QColor* self) {
QColor _ret = self->dark();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->dark());
}
QColor* QColor_Lighter(const QColor* self) {
QColor _ret = self->lighter();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->lighter());
}
QColor* QColor_Darker(const QColor* self) {
QColor _ret = self->darker();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->darker());
}
bool QColor_OperatorEqual(const QColor* self, QColor* c) {
@ -585,81 +539,55 @@ void QColor_SetHslF4(QColor* self, double h, double s, double l, double a) {
}
QColor* QColor_FromRgb4(int r, int g, int b, int a) {
QColor _ret = QColor::fromRgb(static_cast<int>(r), static_cast<int>(g), static_cast<int>(b), static_cast<int>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgb(static_cast<int>(r), static_cast<int>(g), static_cast<int>(b), static_cast<int>(a)));
}
QColor* QColor_FromRgbF4(double r, double g, double b, double a) {
QColor _ret = QColor::fromRgbF(static_cast<qreal>(r), static_cast<qreal>(g), static_cast<qreal>(b), static_cast<qreal>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgbF(static_cast<qreal>(r), static_cast<qreal>(g), static_cast<qreal>(b), static_cast<qreal>(a)));
}
QColor* QColor_FromRgba644(uint16_t r, uint16_t g, uint16_t b, uint16_t a) {
QColor _ret = QColor::fromRgba64(static_cast<ushort>(r), static_cast<ushort>(g), static_cast<ushort>(b), static_cast<ushort>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromRgba64(static_cast<ushort>(r), static_cast<ushort>(g), static_cast<ushort>(b), static_cast<ushort>(a)));
}
QColor* QColor_FromHsv4(int h, int s, int v, int a) {
QColor _ret = QColor::fromHsv(static_cast<int>(h), static_cast<int>(s), static_cast<int>(v), static_cast<int>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHsv(static_cast<int>(h), static_cast<int>(s), static_cast<int>(v), static_cast<int>(a)));
}
QColor* QColor_FromHsvF4(double h, double s, double v, double a) {
QColor _ret = QColor::fromHsvF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(v), static_cast<qreal>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHsvF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(v), static_cast<qreal>(a)));
}
QColor* QColor_FromCmyk5(int c, int m, int y, int k, int a) {
QColor _ret = QColor::fromCmyk(static_cast<int>(c), static_cast<int>(m), static_cast<int>(y), static_cast<int>(k), static_cast<int>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromCmyk(static_cast<int>(c), static_cast<int>(m), static_cast<int>(y), static_cast<int>(k), static_cast<int>(a)));
}
QColor* QColor_FromCmykF5(double c, double m, double y, double k, double a) {
QColor _ret = QColor::fromCmykF(static_cast<qreal>(c), static_cast<qreal>(m), static_cast<qreal>(y), static_cast<qreal>(k), static_cast<qreal>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromCmykF(static_cast<qreal>(c), static_cast<qreal>(m), static_cast<qreal>(y), static_cast<qreal>(k), static_cast<qreal>(a)));
}
QColor* QColor_FromHsl4(int h, int s, int l, int a) {
QColor _ret = QColor::fromHsl(static_cast<int>(h), static_cast<int>(s), static_cast<int>(l), static_cast<int>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHsl(static_cast<int>(h), static_cast<int>(s), static_cast<int>(l), static_cast<int>(a)));
}
QColor* QColor_FromHslF4(double h, double s, double l, double a) {
QColor _ret = QColor::fromHslF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(l), static_cast<qreal>(a));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColor::fromHslF(static_cast<qreal>(h), static_cast<qreal>(s), static_cast<qreal>(l), static_cast<qreal>(a)));
}
QColor* QColor_Light1(const QColor* self, int f) {
QColor _ret = self->light(static_cast<int>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->light(static_cast<int>(f)));
}
QColor* QColor_Dark1(const QColor* self, int f) {
QColor _ret = self->dark(static_cast<int>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->dark(static_cast<int>(f)));
}
QColor* QColor_Lighter1(const QColor* self, int f) {
QColor _ret = self->lighter(static_cast<int>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->lighter(static_cast<int>(f)));
}
QColor* QColor_Darker1(const QColor* self, int f) {
QColor _ret = self->darker(static_cast<int>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->darker(static_cast<int>(f)));
}
void QColor_Delete(QColor* self) {

View File

@ -48,15 +48,11 @@ void QColorDialog_SetCurrentColor(QColorDialog* self, QColor* color) {
}
QColor* QColorDialog_CurrentColor(const QColorDialog* self) {
QColor _ret = self->currentColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->currentColor());
}
QColor* QColorDialog_SelectedColor(const QColorDialog* self) {
QColor _ret = self->selectedColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->selectedColor());
}
void QColorDialog_SetOption(QColorDialog* self, uintptr_t option) {
@ -81,9 +77,7 @@ void QColorDialog_SetVisible(QColorDialog* self, bool visible) {
}
QColor* QColorDialog_GetColor() {
QColor _ret = QColorDialog::getColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::getColor());
}
unsigned int QColorDialog_GetRgba() {
@ -95,9 +89,7 @@ int QColorDialog_CustomCount() {
}
QColor* QColorDialog_CustomColor(int index) {
QColor _ret = QColorDialog::customColor(static_cast<int>(index));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::customColor(static_cast<int>(index)));
}
void QColorDialog_SetCustomColor(int index, QColor* color) {
@ -105,9 +97,7 @@ void QColorDialog_SetCustomColor(int index, QColor* color) {
}
QColor* QColorDialog_StandardColor(int index) {
QColor _ret = QColorDialog::standardColor(static_cast<int>(index));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::standardColor(static_cast<int>(index)));
}
void QColorDialog_SetStandardColor(int index, QColor* color) {
@ -173,29 +163,21 @@ void QColorDialog_SetOption2(QColorDialog* self, uintptr_t option, bool on) {
}
QColor* QColorDialog_GetColor1(QColor* initial) {
QColor _ret = QColorDialog::getColor(*initial);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::getColor(*initial));
}
QColor* QColorDialog_GetColor2(QColor* initial, QWidget* parent) {
QColor _ret = QColorDialog::getColor(*initial, parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::getColor(*initial, parent));
}
QColor* QColorDialog_GetColor3(QColor* initial, QWidget* parent, struct miqt_string* title) {
QString title_QString = QString::fromUtf8(&title->data, title->len);
QColor _ret = QColorDialog::getColor(*initial, parent, title_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::getColor(*initial, parent, title_QString));
}
QColor* QColorDialog_GetColor4(QColor* initial, QWidget* parent, struct miqt_string* title, int options) {
QString title_QString = QString::fromUtf8(&title->data, title->len);
QColor _ret = QColorDialog::getColor(*initial, parent, title_QString, static_cast<QColorDialog::ColorDialogOptions>(options));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(QColorDialog::getColor(*initial, parent, title_QString, static_cast<QColorDialog::ColorDialogOptions>(options)));
}
unsigned int QColorDialog_GetRgba1(unsigned int rgba) {

View File

@ -18,9 +18,7 @@ void QColormap_Cleanup() {
}
QColormap* QColormap_Instance() {
QColormap _ret = QColormap::instance();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColormap*>(new QColormap(_ret));
return new QColormap(QColormap::instance());
}
void QColormap_OperatorAssign(QColormap* self, QColormap* colormap) {
@ -45,15 +43,13 @@ unsigned int QColormap_Pixel(const QColormap* self, QColor* color) {
}
QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel) {
QColor _ret = self->colorAt(static_cast<uint>(pixel));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->colorAt(static_cast<uint>(pixel)));
}
struct miqt_array* QColormap_Colormap(const QColormap* self) {
const QVector<QColor> _ret = self->colormap();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QColor** _arr = static_cast<QColor**>(malloc(sizeof(QColor**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QColor** _arr = static_cast<QColor**>(malloc(sizeof(QColor*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QColor(_ret[i]);
}
@ -64,9 +60,7 @@ struct miqt_array* QColormap_Colormap(const QColormap* self) {
}
QColormap* QColormap_Instance1(int screen) {
QColormap _ret = QColormap::instance(static_cast<int>(screen));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColormap*>(new QColormap(_ret));
return new QColormap(QColormap::instance(static_cast<int>(screen)));
}
void QColormap_Delete(QColormap* self) {

View File

@ -65,9 +65,7 @@ void QColorSpace_SetTransferFunction(QColorSpace* self, uintptr_t transferFuncti
}
QColorSpace* QColorSpace_WithTransferFunction(const QColorSpace* self, uintptr_t transferFunction) {
QColorSpace _ret = self->withTransferFunction(static_cast<QColorSpace::TransferFunction>(transferFunction));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColorSpace*>(new QColorSpace(_ret));
return new QColorSpace(self->withTransferFunction(static_cast<QColorSpace::TransferFunction>(transferFunction)));
}
void QColorSpace_SetPrimaries(QColorSpace* self, uintptr_t primariesId) {
@ -83,21 +81,15 @@ bool QColorSpace_IsValid(const QColorSpace* self) {
}
QColorSpace* QColorSpace_FromIccProfile(QByteArray* iccProfile) {
QColorSpace _ret = QColorSpace::fromIccProfile(*iccProfile);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColorSpace*>(new QColorSpace(_ret));
return new QColorSpace(QColorSpace::fromIccProfile(*iccProfile));
}
QByteArray* QColorSpace_IccProfile(const QColorSpace* self) {
QByteArray _ret = self->iccProfile();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->iccProfile());
}
QColorTransform* QColorSpace_TransformationToColorSpace(const QColorSpace* self, QColorSpace* colorspace) {
QColorTransform _ret = self->transformationToColorSpace(*colorspace);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColorTransform*>(new QColorTransform(_ret));
return new QColorTransform(self->transformationToColorSpace(*colorspace));
}
void QColorSpace_SetTransferFunction2(QColorSpace* self, uintptr_t transferFunction, float gamma) {
@ -105,9 +97,7 @@ void QColorSpace_SetTransferFunction2(QColorSpace* self, uintptr_t transferFunct
}
QColorSpace* QColorSpace_WithTransferFunction2(const QColorSpace* self, uintptr_t transferFunction, float gamma) {
QColorSpace _ret = self->withTransferFunction(static_cast<QColorSpace::TransferFunction>(transferFunction), static_cast<float>(gamma));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColorSpace*>(new QColorSpace(_ret));
return new QColorSpace(self->withTransferFunction(static_cast<QColorSpace::TransferFunction>(transferFunction), static_cast<float>(gamma)));
}
void QColorSpace_Delete(QColorSpace* self) {

View File

@ -26,15 +26,11 @@ unsigned int QColorTransform_Map(const QColorTransform* self, unsigned int argb)
}
QRgba64* QColorTransform_MapWithRgba64(const QColorTransform* self, QRgba64* rgba64) {
QRgba64 _ret = self->map(*rgba64);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRgba64*>(new QRgba64(_ret));
return new QRgba64(self->map(*rgba64));
}
QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color) {
QColor _ret = self->map(*color);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->map(*color));
}
void QColorTransform_Delete(QColorTransform* self) {

View File

@ -55,9 +55,7 @@ void QColumnView_connect_UpdatePreviewWidget(QColumnView* self, void* slot) {
}
QModelIndex* QColumnView_IndexAt(const QColumnView* self, QPoint* point) {
QModelIndex _ret = self->indexAt(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->indexAt(*point));
}
void QColumnView_ScrollTo(QColumnView* self, QModelIndex* index) {
@ -65,15 +63,11 @@ void QColumnView_ScrollTo(QColumnView* self, QModelIndex* index) {
}
QSize* QColumnView_SizeHint(const QColumnView* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QRect* QColumnView_VisualRect(const QColumnView* self, QModelIndex* index) {
QRect _ret = self->visualRect(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->visualRect(*index));
}
void QColumnView_SetModel(QColumnView* self, QAbstractItemModel* model) {

View File

@ -135,9 +135,7 @@ void QComboBox_SetMinimumContentsLength(QComboBox* self, int characters) {
}
QSize* QComboBox_IconSize(const QComboBox* self) {
QSize _ret = self->iconSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->iconSize());
}
void QComboBox_SetIconSize(QComboBox* self, QSize* size) {
@ -205,9 +203,7 @@ void QComboBox_SetModel(QComboBox* self, QAbstractItemModel* model) {
}
QModelIndex* QComboBox_RootModelIndex(const QComboBox* self) {
QModelIndex _ret = self->rootModelIndex();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->rootModelIndex());
}
void QComboBox_SetRootModelIndex(QComboBox* self, QModelIndex* index) {
@ -234,9 +230,7 @@ struct miqt_string* QComboBox_CurrentText(const QComboBox* self) {
}
QVariant* QComboBox_CurrentData(const QComboBox* self) {
QVariant _ret = self->currentData();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->currentData());
}
struct miqt_string* QComboBox_ItemText(const QComboBox* self, int index) {
@ -247,15 +241,11 @@ struct miqt_string* QComboBox_ItemText(const QComboBox* self, int index) {
}
QIcon* QComboBox_ItemIcon(const QComboBox* self, int index) {
QIcon _ret = self->itemIcon(static_cast<int>(index));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->itemIcon(static_cast<int>(index)));
}
QVariant* QComboBox_ItemData(const QComboBox* self, int index) {
QVariant _ret = self->itemData(static_cast<int>(index));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->itemData(static_cast<int>(index)));
}
void QComboBox_AddItem(QComboBox* self, struct miqt_string* text) {
@ -328,15 +318,11 @@ void QComboBox_SetView(QComboBox* self, QAbstractItemView* itemView) {
}
QSize* QComboBox_SizeHint(const QComboBox* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QComboBox_MinimumSizeHint(const QComboBox* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
void QComboBox_ShowPopup(QComboBox* self) {
@ -352,15 +338,11 @@ bool QComboBox_Event(QComboBox* self, QEvent* event) {
}
QVariant* QComboBox_InputMethodQuery(const QComboBox* self, uintptr_t param1) {
QVariant _ret = self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(param1)));
}
QVariant* QComboBox_InputMethodQuery2(const QComboBox* self, uintptr_t query, QVariant* argument) {
QVariant _ret = self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query), *argument);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query), *argument));
}
void QComboBox_Clear(QComboBox* self) {
@ -565,15 +547,11 @@ int QComboBox_FindData3(const QComboBox* self, QVariant* data, int role, int fla
}
QVariant* QComboBox_CurrentData1(const QComboBox* self, int role) {
QVariant _ret = self->currentData(static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->currentData(static_cast<int>(role)));
}
QVariant* QComboBox_ItemData2(const QComboBox* self, int index, int role) {
QVariant _ret = self->itemData(static_cast<int>(index), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->itemData(static_cast<int>(index), static_cast<int>(role)));
}
void QComboBox_AddItem22(QComboBox* self, struct miqt_string* text, QVariant* userData) {

View File

@ -93,7 +93,7 @@ void QCommandLineOption_Swap(QCommandLineOption* self, QCommandLineOption* other
struct miqt_array* QCommandLineOption_Names(const QCommandLineOption* self) {
QStringList _ret = self->names();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -148,7 +148,7 @@ void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_a
struct miqt_array* QCommandLineOption_DefaultValues(const QCommandLineOption* self) {
QStringList _ret = self->defaultValues();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -50,15 +50,11 @@ bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array*
}
QCommandLineOption* QCommandLineParser_AddVersionOption(QCommandLineParser* self) {
QCommandLineOption _ret = self->addVersionOption();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCommandLineOption*>(new QCommandLineOption(_ret));
return new QCommandLineOption(self->addVersionOption());
}
QCommandLineOption* QCommandLineParser_AddHelpOption(QCommandLineParser* self) {
QCommandLineOption _ret = self->addHelpOption();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCommandLineOption*>(new QCommandLineOption(_ret));
return new QCommandLineOption(self->addHelpOption());
}
void QCommandLineParser_SetApplicationDescription(QCommandLineParser* self, struct miqt_string* description) {
@ -130,7 +126,7 @@ struct miqt_string* QCommandLineParser_Value(const QCommandLineParser* self, str
struct miqt_array* QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string* name) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
QStringList _ret = self->values(name_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -157,7 +153,7 @@ struct miqt_string* QCommandLineParser_ValueWithOption(const QCommandLineParser*
struct miqt_array* QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option) {
QStringList _ret = self->values(*option);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -173,7 +169,7 @@ struct miqt_array* QCommandLineParser_ValuesWithOption(const QCommandLineParser*
struct miqt_array* QCommandLineParser_PositionalArguments(const QCommandLineParser* self) {
QStringList _ret = self->positionalArguments();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -189,7 +185,7 @@ struct miqt_array* QCommandLineParser_PositionalArguments(const QCommandLinePars
struct miqt_array* QCommandLineParser_OptionNames(const QCommandLineParser* self) {
QStringList _ret = self->optionNames();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -205,7 +201,7 @@ struct miqt_array* QCommandLineParser_OptionNames(const QCommandLineParser* self
struct miqt_array* QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self) {
QStringList _ret = self->unknownOptionNames();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -50,9 +50,7 @@ void QCommonStyle_DrawControl(const QCommonStyle* self, uintptr_t element, QStyl
}
QRect* QCommonStyle_SubElementRect(const QCommonStyle* self, uintptr_t r, QStyleOption* opt) {
QRect _ret = self->subElementRect(static_cast<QStyle::SubElement>(r), opt);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->subElementRect(static_cast<QStyle::SubElement>(r), opt));
}
void QCommonStyle_DrawComplexControl(const QCommonStyle* self, uintptr_t cc, QStyleOptionComplex* opt, QPainter* p) {
@ -65,15 +63,11 @@ uintptr_t QCommonStyle_HitTestComplexControl(const QCommonStyle* self, uintptr_t
}
QRect* QCommonStyle_SubControlRect(const QCommonStyle* self, uintptr_t cc, QStyleOptionComplex* opt, uintptr_t sc) {
QRect _ret = self->subControlRect(static_cast<QStyle::ComplexControl>(cc), opt, static_cast<QStyle::SubControl>(sc));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->subControlRect(static_cast<QStyle::ComplexControl>(cc), opt, static_cast<QStyle::SubControl>(sc)));
}
QSize* QCommonStyle_SizeFromContents(const QCommonStyle* self, uintptr_t ct, QStyleOption* opt, QSize* contentsSize) {
QSize _ret = self->sizeFromContents(static_cast<QStyle::ContentsType>(ct), opt, *contentsSize);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeFromContents(static_cast<QStyle::ContentsType>(ct), opt, *contentsSize));
}
int QCommonStyle_PixelMetric(const QCommonStyle* self, uintptr_t m) {
@ -85,21 +79,15 @@ int QCommonStyle_StyleHint(const QCommonStyle* self, uintptr_t sh) {
}
QIcon* QCommonStyle_StandardIcon(const QCommonStyle* self, uintptr_t standardIcon) {
QIcon _ret = self->standardIcon(static_cast<QStyle::StandardPixmap>(standardIcon));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->standardIcon(static_cast<QStyle::StandardPixmap>(standardIcon)));
}
QPixmap* QCommonStyle_StandardPixmap(const QCommonStyle* self, uintptr_t sp) {
QPixmap _ret = self->standardPixmap(static_cast<QStyle::StandardPixmap>(sp));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->standardPixmap(static_cast<QStyle::StandardPixmap>(sp)));
}
QPixmap* QCommonStyle_GeneratedIconPixmap(const QCommonStyle* self, uintptr_t iconMode, QPixmap* pixmap, QStyleOption* opt) {
QPixmap _ret = self->generatedIconPixmap(static_cast<QIcon::Mode>(iconMode), *pixmap, opt);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->generatedIconPixmap(static_cast<QIcon::Mode>(iconMode), *pixmap, opt));
}
int QCommonStyle_LayoutSpacing(const QCommonStyle* self, uintptr_t control1, uintptr_t control2, uintptr_t orientation) {
@ -163,9 +151,7 @@ void QCommonStyle_DrawControl4(const QCommonStyle* self, uintptr_t element, QSty
}
QRect* QCommonStyle_SubElementRect3(const QCommonStyle* self, uintptr_t r, QStyleOption* opt, QWidget* widget) {
QRect _ret = self->subElementRect(static_cast<QStyle::SubElement>(r), opt, widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->subElementRect(static_cast<QStyle::SubElement>(r), opt, widget));
}
void QCommonStyle_DrawComplexControl4(const QCommonStyle* self, uintptr_t cc, QStyleOptionComplex* opt, QPainter* p, QWidget* w) {
@ -178,15 +164,11 @@ uintptr_t QCommonStyle_HitTestComplexControl4(const QCommonStyle* self, uintptr_
}
QRect* QCommonStyle_SubControlRect4(const QCommonStyle* self, uintptr_t cc, QStyleOptionComplex* opt, uintptr_t sc, QWidget* w) {
QRect _ret = self->subControlRect(static_cast<QStyle::ComplexControl>(cc), opt, static_cast<QStyle::SubControl>(sc), w);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->subControlRect(static_cast<QStyle::ComplexControl>(cc), opt, static_cast<QStyle::SubControl>(sc), w));
}
QSize* QCommonStyle_SizeFromContents4(const QCommonStyle* self, uintptr_t ct, QStyleOption* opt, QSize* contentsSize, QWidget* widget) {
QSize _ret = self->sizeFromContents(static_cast<QStyle::ContentsType>(ct), opt, *contentsSize, widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeFromContents(static_cast<QStyle::ContentsType>(ct), opt, *contentsSize, widget));
}
int QCommonStyle_PixelMetric2(const QCommonStyle* self, uintptr_t m, QStyleOption* opt) {
@ -210,27 +192,19 @@ int QCommonStyle_StyleHint4(const QCommonStyle* self, uintptr_t sh, QStyleOption
}
QIcon* QCommonStyle_StandardIcon2(const QCommonStyle* self, uintptr_t standardIcon, QStyleOption* opt) {
QIcon _ret = self->standardIcon(static_cast<QStyle::StandardPixmap>(standardIcon), opt);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->standardIcon(static_cast<QStyle::StandardPixmap>(standardIcon), opt));
}
QIcon* QCommonStyle_StandardIcon3(const QCommonStyle* self, uintptr_t standardIcon, QStyleOption* opt, QWidget* widget) {
QIcon _ret = self->standardIcon(static_cast<QStyle::StandardPixmap>(standardIcon), opt, widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->standardIcon(static_cast<QStyle::StandardPixmap>(standardIcon), opt, widget));
}
QPixmap* QCommonStyle_StandardPixmap2(const QCommonStyle* self, uintptr_t sp, QStyleOption* opt) {
QPixmap _ret = self->standardPixmap(static_cast<QStyle::StandardPixmap>(sp), opt);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->standardPixmap(static_cast<QStyle::StandardPixmap>(sp), opt));
}
QPixmap* QCommonStyle_StandardPixmap3(const QCommonStyle* self, uintptr_t sp, QStyleOption* opt, QWidget* widget) {
QPixmap _ret = self->standardPixmap(static_cast<QStyle::StandardPixmap>(sp), opt, widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->standardPixmap(static_cast<QStyle::StandardPixmap>(sp), opt, widget));
}
int QCommonStyle_LayoutSpacing4(const QCommonStyle* self, uintptr_t control1, uintptr_t control2, uintptr_t orientation, QStyleOption* option) {

View File

@ -169,9 +169,7 @@ int QCompleter_CurrentRow(const QCompleter* self) {
}
QModelIndex* QCompleter_CurrentIndex(const QCompleter* self) {
QModelIndex _ret = self->currentIndex();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->currentIndex());
}
struct miqt_string* QCompleter_CurrentCompletion(const QCompleter* self) {
@ -215,7 +213,7 @@ struct miqt_string* QCompleter_PathFromIndex(const QCompleter* self, QModelIndex
struct miqt_array* QCompleter_SplitPath(const QCompleter* self, struct miqt_string* path) {
QString path_QString = QString::fromUtf8(&path->data, path->len);
QStringList _ret = self->splitPath(path_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -62,21 +62,15 @@ void QConcatenateTablesProxyModel_RemoveSourceModel(QConcatenateTablesProxyModel
}
QModelIndex* QConcatenateTablesProxyModel_MapFromSource(const QConcatenateTablesProxyModel* self, QModelIndex* sourceIndex) {
QModelIndex _ret = self->mapFromSource(*sourceIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mapFromSource(*sourceIndex));
}
QModelIndex* QConcatenateTablesProxyModel_MapToSource(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex) {
QModelIndex _ret = self->mapToSource(*proxyIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mapToSource(*proxyIndex));
}
QVariant* QConcatenateTablesProxyModel_Data(const QConcatenateTablesProxyModel* self, QModelIndex* index) {
QVariant _ret = self->data(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index));
}
bool QConcatenateTablesProxyModel_SetData(QConcatenateTablesProxyModel* self, QModelIndex* index, QVariant* value) {
@ -89,15 +83,11 @@ int QConcatenateTablesProxyModel_Flags(const QConcatenateTablesProxyModel* self,
}
QModelIndex* QConcatenateTablesProxyModel_Index(const QConcatenateTablesProxyModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QConcatenateTablesProxyModel_Parent(const QConcatenateTablesProxyModel* self, QModelIndex* index) {
QModelIndex _ret = self->parent(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent(*index));
}
int QConcatenateTablesProxyModel_RowCount(const QConcatenateTablesProxyModel* self) {
@ -105,9 +95,7 @@ int QConcatenateTablesProxyModel_RowCount(const QConcatenateTablesProxyModel* se
}
QVariant* QConcatenateTablesProxyModel_HeaderData(const QConcatenateTablesProxyModel* self, int section, uintptr_t orientation) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation)));
}
int QConcatenateTablesProxyModel_ColumnCount(const QConcatenateTablesProxyModel* self) {
@ -116,7 +104,7 @@ int QConcatenateTablesProxyModel_ColumnCount(const QConcatenateTablesProxyModel*
struct miqt_array* QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self) {
QStringList _ret = self->mimeTypes();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -149,9 +137,7 @@ bool QConcatenateTablesProxyModel_DropMimeData(QConcatenateTablesProxyModel* sel
}
QSize* QConcatenateTablesProxyModel_Span(const QConcatenateTablesProxyModel* self, QModelIndex* index) {
QSize _ret = self->span(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->span(*index));
}
struct miqt_string* QConcatenateTablesProxyModel_Tr2(const char* s, const char* c) {
@ -183,9 +169,7 @@ struct miqt_string* QConcatenateTablesProxyModel_TrUtf83(const char* s, const ch
}
QVariant* QConcatenateTablesProxyModel_Data2(const QConcatenateTablesProxyModel* self, QModelIndex* index, int role) {
QVariant _ret = self->data(*index, static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index, static_cast<int>(role)));
}
bool QConcatenateTablesProxyModel_SetData3(QConcatenateTablesProxyModel* self, QModelIndex* index, QVariant* value, int role) {
@ -193,9 +177,7 @@ bool QConcatenateTablesProxyModel_SetData3(QConcatenateTablesProxyModel* self, Q
}
QModelIndex* QConcatenateTablesProxyModel_Index3(const QConcatenateTablesProxyModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
int QConcatenateTablesProxyModel_RowCount1(const QConcatenateTablesProxyModel* self, QModelIndex* parent) {
@ -203,9 +185,7 @@ int QConcatenateTablesProxyModel_RowCount1(const QConcatenateTablesProxyModel* s
}
QVariant* QConcatenateTablesProxyModel_HeaderData3(const QConcatenateTablesProxyModel* self, int section, uintptr_t orientation, int role) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
}
int QConcatenateTablesProxyModel_ColumnCount1(const QConcatenateTablesProxyModel* self, QModelIndex* parent) {

View File

@ -41,7 +41,7 @@ struct miqt_string* QCoreApplication_TrUtf8(const char* s) {
struct miqt_array* QCoreApplication_Arguments() {
QStringList _ret = QCoreApplication::arguments();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -209,7 +209,7 @@ void QCoreApplication_SetLibraryPaths(struct miqt_array* /* of struct miqt_strin
struct miqt_array* QCoreApplication_LibraryPaths() {
QStringList _ret = QCoreApplication::libraryPaths();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -111,9 +111,7 @@ QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new2(QDynamicPropertyCh
}
QByteArray* QDynamicPropertyChangeEvent_PropertyName(const QDynamicPropertyChangeEvent* self) {
QByteArray _ret = self->propertyName();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->propertyName());
}
void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self) {

View File

@ -26,15 +26,11 @@ bool QCryptographicHash_AddDataWithDevice(QCryptographicHash* self, QIODevice* d
}
QByteArray* QCryptographicHash_Result(const QCryptographicHash* self) {
QByteArray _ret = self->result();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->result());
}
QByteArray* QCryptographicHash_Hash(QByteArray* data, uintptr_t method) {
QByteArray _ret = QCryptographicHash::hash(*data, static_cast<QCryptographicHash::Algorithm>(method));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QCryptographicHash::hash(*data, static_cast<QCryptographicHash::Algorithm>(method)));
}
int QCryptographicHash_HashLength(uintptr_t method) {

View File

@ -69,39 +69,27 @@ QBitmap* QCursor_Mask(const QCursor* self) {
}
QBitmap* QCursor_BitmapWithQtReturnByValueConstant(const QCursor* self, uintptr_t param1) {
QBitmap _ret = self->bitmap(static_cast<Qt::ReturnByValueConstant>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(self->bitmap(static_cast<Qt::ReturnByValueConstant>(param1)));
}
QBitmap* QCursor_MaskWithQtReturnByValueConstant(const QCursor* self, uintptr_t param1) {
QBitmap _ret = self->mask(static_cast<Qt::ReturnByValueConstant>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBitmap*>(new QBitmap(_ret));
return new QBitmap(self->mask(static_cast<Qt::ReturnByValueConstant>(param1)));
}
QPixmap* QCursor_Pixmap(const QCursor* self) {
QPixmap _ret = self->pixmap();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap());
}
QPoint* QCursor_HotSpot(const QCursor* self) {
QPoint _ret = self->hotSpot();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->hotSpot());
}
QPoint* QCursor_Pos() {
QPoint _ret = QCursor::pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(QCursor::pos());
}
QPoint* QCursor_PosWithScreen(QScreen* screen) {
QPoint _ret = QCursor::pos(screen);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(QCursor::pos(screen));
}
void QCursor_SetPos(int x, int y) {

View File

@ -60,9 +60,7 @@ void QDataWidgetMapper_SetRootIndex(QDataWidgetMapper* self, QModelIndex* index)
}
QModelIndex* QDataWidgetMapper_RootIndex(const QDataWidgetMapper* self) {
QModelIndex _ret = self->rootIndex();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->rootIndex());
}
void QDataWidgetMapper_SetOrientation(QDataWidgetMapper* self, uintptr_t aOrientation) {
@ -100,9 +98,7 @@ int QDataWidgetMapper_MappedSection(const QDataWidgetMapper* self, QWidget* widg
}
QByteArray* QDataWidgetMapper_MappedPropertyName(const QDataWidgetMapper* self, QWidget* widget) {
QByteArray _ret = self->mappedPropertyName(widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->mappedPropertyName(widget));
}
QWidget* QDataWidgetMapper_MappedWidgetAt(const QDataWidgetMapper* self, int section) {

View File

@ -95,27 +95,19 @@ int QDate_DaysInYearWithCal(const QDate* self, QCalendar* cal) {
}
QDateTime* QDate_StartOfDay(const QDate* self) {
QDateTime _ret = self->startOfDay();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->startOfDay());
}
QDateTime* QDate_EndOfDay(const QDate* self) {
QDateTime _ret = self->endOfDay();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->endOfDay());
}
QDateTime* QDate_StartOfDayWithZone(const QDate* self, QTimeZone* zone) {
QDateTime _ret = self->startOfDay(*zone);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->startOfDay(*zone));
}
QDateTime* QDate_EndOfDayWithZone(const QDate* self, QTimeZone* zone) {
QDateTime _ret = self->endOfDay(*zone);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->endOfDay(*zone));
}
struct miqt_string* QDate_ShortMonthName(int month) {
@ -193,33 +185,23 @@ void QDate_GetDate2(const QDate* self, int* year, int* month, int* day) {
}
QDate* QDate_AddDays(const QDate* self, long long days) {
QDate _ret = self->addDays(static_cast<qint64>(days));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->addDays(static_cast<qint64>(days)));
}
QDate* QDate_AddMonths(const QDate* self, int months) {
QDate _ret = self->addMonths(static_cast<int>(months));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->addMonths(static_cast<int>(months)));
}
QDate* QDate_AddYears(const QDate* self, int years) {
QDate _ret = self->addYears(static_cast<int>(years));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->addYears(static_cast<int>(years)));
}
QDate* QDate_AddMonths2(const QDate* self, int months, QCalendar* cal) {
QDate _ret = self->addMonths(static_cast<int>(months), *cal);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->addMonths(static_cast<int>(months), *cal));
}
QDate* QDate_AddYears2(const QDate* self, int years, QCalendar* cal) {
QDate _ret = self->addYears(static_cast<int>(years), *cal);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->addYears(static_cast<int>(years), *cal));
}
long long QDate_DaysTo(const QDate* self, QDate* param1) {
@ -251,32 +233,24 @@ bool QDate_OperatorGreaterOrEqual(const QDate* self, QDate* other) {
}
QDate* QDate_CurrentDate() {
QDate _ret = QDate::currentDate();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(QDate::currentDate());
}
QDate* QDate_FromString(struct miqt_string* s) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QDate _ret = QDate::fromString(s_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(QDate::fromString(s_QString));
}
QDate* QDate_FromString2(struct miqt_string* s, struct miqt_string* format) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QString format_QString = QString::fromUtf8(&format->data, format->len);
QDate _ret = QDate::fromString(s_QString, format_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(QDate::fromString(s_QString, format_QString));
}
QDate* QDate_FromString3(struct miqt_string* s, struct miqt_string* format, QCalendar* cal) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QString format_QString = QString::fromUtf8(&format->data, format->len);
QDate _ret = QDate::fromString(s_QString, format_QString, *cal);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(QDate::fromString(s_QString, format_QString, *cal));
}
bool QDate_IsValid2(int y, int m, int d) {
@ -288,9 +262,7 @@ bool QDate_IsLeapYear(int year) {
}
QDate* QDate_FromJulianDay(long long jd_) {
QDate _ret = QDate::fromJulianDay(static_cast<qint64>(jd_));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(QDate::fromJulianDay(static_cast<qint64>(jd_)));
}
long long QDate_ToJulianDay(const QDate* self) {
@ -302,27 +274,19 @@ int QDate_WeekNumber1(const QDate* self, int* yearNum) {
}
QDateTime* QDate_StartOfDay1(const QDate* self, uintptr_t spec) {
QDateTime _ret = self->startOfDay(static_cast<Qt::TimeSpec>(spec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->startOfDay(static_cast<Qt::TimeSpec>(spec)));
}
QDateTime* QDate_StartOfDay2(const QDate* self, uintptr_t spec, int offsetSeconds) {
QDateTime _ret = self->startOfDay(static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetSeconds));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->startOfDay(static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetSeconds)));
}
QDateTime* QDate_EndOfDay1(const QDate* self, uintptr_t spec) {
QDateTime _ret = self->endOfDay(static_cast<Qt::TimeSpec>(spec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->endOfDay(static_cast<Qt::TimeSpec>(spec)));
}
QDateTime* QDate_EndOfDay2(const QDate* self, uintptr_t spec, int offsetSeconds) {
QDateTime _ret = self->endOfDay(static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetSeconds));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->endOfDay(static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetSeconds)));
}
struct miqt_string* QDate_ShortMonthName2(int month, uintptr_t typeVal) {
@ -362,9 +326,7 @@ struct miqt_string* QDate_ToString1(const QDate* self, uintptr_t format) {
QDate* QDate_FromString22(struct miqt_string* s, uintptr_t f) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QDate _ret = QDate::fromString(s_QString, static_cast<Qt::DateFormat>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(QDate::fromString(s_QString, static_cast<Qt::DateFormat>(f)));
}
void QDate_Delete(QDate* self) {
@ -435,9 +397,7 @@ bool QTime_SetHMS(QTime* self, int h, int m, int s) {
}
QTime* QTime_AddSecs(const QTime* self, int secs) {
QTime _ret = self->addSecs(static_cast<int>(secs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(self->addSecs(static_cast<int>(secs)));
}
int QTime_SecsTo(const QTime* self, QTime* param1) {
@ -445,9 +405,7 @@ int QTime_SecsTo(const QTime* self, QTime* param1) {
}
QTime* QTime_AddMSecs(const QTime* self, int ms) {
QTime _ret = self->addMSecs(static_cast<int>(ms));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(self->addMSecs(static_cast<int>(ms)));
}
int QTime_MsecsTo(const QTime* self, QTime* param1) {
@ -479,9 +437,7 @@ bool QTime_OperatorGreaterOrEqual(const QTime* self, QTime* other) {
}
QTime* QTime_FromMSecsSinceStartOfDay(int msecs) {
QTime _ret = QTime::fromMSecsSinceStartOfDay(static_cast<int>(msecs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(QTime::fromMSecsSinceStartOfDay(static_cast<int>(msecs)));
}
int QTime_MsecsSinceStartOfDay(const QTime* self) {
@ -489,24 +445,18 @@ int QTime_MsecsSinceStartOfDay(const QTime* self) {
}
QTime* QTime_CurrentTime() {
QTime _ret = QTime::currentTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(QTime::currentTime());
}
QTime* QTime_FromString(struct miqt_string* s) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QTime _ret = QTime::fromString(s_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(QTime::fromString(s_QString));
}
QTime* QTime_FromString2(struct miqt_string* s, struct miqt_string* format) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QString format_QString = QString::fromUtf8(&format->data, format->len);
QTime _ret = QTime::fromString(s_QString, format_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(QTime::fromString(s_QString, format_QString));
}
bool QTime_IsValid2(int h, int m, int s) {
@ -538,9 +488,7 @@ bool QTime_SetHMS4(QTime* self, int h, int m, int s, int ms) {
QTime* QTime_FromString22(struct miqt_string* s, uintptr_t f) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QTime _ret = QTime::fromString(s_QString, static_cast<Qt::DateFormat>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(QTime::fromString(s_QString, static_cast<Qt::DateFormat>(f)));
}
bool QTime_IsValid4(int h, int m, int s, int ms) {
@ -592,15 +540,11 @@ bool QDateTime_IsValid(const QDateTime* self) {
}
QDate* QDateTime_Date(const QDateTime* self) {
QDate _ret = self->date();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->date());
}
QTime* QDateTime_Time(const QDateTime* self) {
QTime _ret = self->time();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(self->time());
}
uintptr_t QDateTime_TimeSpec(const QDateTime* self) {
@ -613,9 +557,7 @@ int QDateTime_OffsetFromUtc(const QDateTime* self) {
}
QTimeZone* QDateTime_TimeZone(const QDateTime* self) {
QTimeZone _ret = self->timeZone();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTimeZone*>(new QTimeZone(_ret));
return new QTimeZone(self->timeZone());
}
struct miqt_string* QDateTime_TimeZoneAbbreviation(const QDateTime* self) {
@ -689,63 +631,43 @@ struct miqt_string* QDateTime_ToString2(const QDateTime* self, struct miqt_strin
}
QDateTime* QDateTime_AddDays(const QDateTime* self, long long days) {
QDateTime _ret = self->addDays(static_cast<qint64>(days));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->addDays(static_cast<qint64>(days)));
}
QDateTime* QDateTime_AddMonths(const QDateTime* self, int months) {
QDateTime _ret = self->addMonths(static_cast<int>(months));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->addMonths(static_cast<int>(months)));
}
QDateTime* QDateTime_AddYears(const QDateTime* self, int years) {
QDateTime _ret = self->addYears(static_cast<int>(years));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->addYears(static_cast<int>(years)));
}
QDateTime* QDateTime_AddSecs(const QDateTime* self, long long secs) {
QDateTime _ret = self->addSecs(static_cast<qint64>(secs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->addSecs(static_cast<qint64>(secs)));
}
QDateTime* QDateTime_AddMSecs(const QDateTime* self, long long msecs) {
QDateTime _ret = self->addMSecs(static_cast<qint64>(msecs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->addMSecs(static_cast<qint64>(msecs)));
}
QDateTime* QDateTime_ToTimeSpec(const QDateTime* self, uintptr_t spec) {
QDateTime _ret = self->toTimeSpec(static_cast<Qt::TimeSpec>(spec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toTimeSpec(static_cast<Qt::TimeSpec>(spec)));
}
QDateTime* QDateTime_ToLocalTime(const QDateTime* self) {
QDateTime _ret = self->toLocalTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toLocalTime());
}
QDateTime* QDateTime_ToUTC(const QDateTime* self) {
QDateTime _ret = self->toUTC();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toUTC());
}
QDateTime* QDateTime_ToOffsetFromUtc(const QDateTime* self, int offsetSeconds) {
QDateTime _ret = self->toOffsetFromUtc(static_cast<int>(offsetSeconds));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toOffsetFromUtc(static_cast<int>(offsetSeconds)));
}
QDateTime* QDateTime_ToTimeZone(const QDateTime* self, QTimeZone* toZone) {
QDateTime _ret = self->toTimeZone(*toZone);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->toTimeZone(*toZone));
}
long long QDateTime_DaysTo(const QDateTime* self, QDateTime* param1) {
@ -793,38 +715,28 @@ int QDateTime_UtcOffset(const QDateTime* self) {
}
QDateTime* QDateTime_CurrentDateTime() {
QDateTime _ret = QDateTime::currentDateTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::currentDateTime());
}
QDateTime* QDateTime_CurrentDateTimeUtc() {
QDateTime _ret = QDateTime::currentDateTimeUtc();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::currentDateTimeUtc());
}
QDateTime* QDateTime_FromString(struct miqt_string* s) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QDateTime _ret = QDateTime::fromString(s_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromString(s_QString));
}
QDateTime* QDateTime_FromString2(struct miqt_string* s, struct miqt_string* format) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QString format_QString = QString::fromUtf8(&format->data, format->len);
QDateTime _ret = QDateTime::fromString(s_QString, format_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromString(s_QString, format_QString));
}
QDateTime* QDateTime_FromString3(struct miqt_string* s, struct miqt_string* format, QCalendar* cal) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QString format_QString = QString::fromUtf8(&format->data, format->len);
QDateTime _ret = QDateTime::fromString(s_QString, format_QString, *cal);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromString(s_QString, format_QString, *cal));
}
unsigned int QDateTime_ToTimeT(const QDateTime* self) {
@ -836,51 +748,35 @@ void QDateTime_SetTimeT(QDateTime* self, unsigned int secsSince1Jan1970UTC) {
}
QDateTime* QDateTime_FromTimeT(unsigned int secsSince1Jan1970UTC) {
QDateTime _ret = QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC)));
}
QDateTime* QDateTime_FromTimeT2(unsigned int secsSince1Jan1970UTC, uintptr_t spec) {
QDateTime _ret = QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC), static_cast<Qt::TimeSpec>(spec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC), static_cast<Qt::TimeSpec>(spec)));
}
QDateTime* QDateTime_FromTimeT3(unsigned int secsSince1Jan1970UTC, QTimeZone* timeZone) {
QDateTime _ret = QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC), *timeZone);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC), *timeZone));
}
QDateTime* QDateTime_FromMSecsSinceEpoch(long long msecs) {
QDateTime _ret = QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs)));
}
QDateTime* QDateTime_FromMSecsSinceEpoch2(long long msecs, uintptr_t spec) {
QDateTime _ret = QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs), static_cast<Qt::TimeSpec>(spec));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs), static_cast<Qt::TimeSpec>(spec)));
}
QDateTime* QDateTime_FromSecsSinceEpoch(long long secs) {
QDateTime _ret = QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs)));
}
QDateTime* QDateTime_FromMSecsSinceEpoch3(long long msecs, QTimeZone* timeZone) {
QDateTime _ret = QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs), *timeZone);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs), *timeZone));
}
QDateTime* QDateTime_FromSecsSinceEpoch2(long long secs, QTimeZone* timeZone) {
QDateTime _ret = QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs), *timeZone);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs), *timeZone));
}
long long QDateTime_CurrentMSecsSinceEpoch() {
@ -900,33 +796,23 @@ struct miqt_string* QDateTime_ToString1(const QDateTime* self, uintptr_t format)
QDateTime* QDateTime_FromString22(struct miqt_string* s, uintptr_t f) {
QString s_QString = QString::fromUtf8(&s->data, s->len);
QDateTime _ret = QDateTime::fromString(s_QString, static_cast<Qt::DateFormat>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromString(s_QString, static_cast<Qt::DateFormat>(f)));
}
QDateTime* QDateTime_FromTimeT32(unsigned int secsSince1Jan1970UTC, uintptr_t spec, int offsetFromUtc) {
QDateTime _ret = QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC), static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetFromUtc));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromTime_t(static_cast<uint>(secsSince1Jan1970UTC), static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetFromUtc)));
}
QDateTime* QDateTime_FromMSecsSinceEpoch32(long long msecs, uintptr_t spec, int offsetFromUtc) {
QDateTime _ret = QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs), static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetFromUtc));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromMSecsSinceEpoch(static_cast<qint64>(msecs), static_cast<Qt::TimeSpec>(spec), static_cast<int>(offsetFromUtc)));
}
QDateTime* QDateTime_FromSecsSinceEpoch22(long long secs, uintptr_t spe) {
QDateTime _ret = QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs), static_cast<Qt::TimeSpec>(spe));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs), static_cast<Qt::TimeSpec>(spe)));
}
QDateTime* QDateTime_FromSecsSinceEpoch3(long long secs, uintptr_t spe, int offsetFromUtc) {
QDateTime _ret = QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs), static_cast<Qt::TimeSpec>(spe), static_cast<int>(offsetFromUtc));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(QDateTime::fromSecsSinceEpoch(static_cast<qint64>(secs), static_cast<Qt::TimeSpec>(spe), static_cast<int>(offsetFromUtc)));
}
void QDateTime_Delete(QDateTime* self) {

View File

@ -68,27 +68,19 @@ struct miqt_string* QDateTimeEdit_TrUtf8(const char* s) {
}
QDateTime* QDateTimeEdit_DateTime(const QDateTimeEdit* self) {
QDateTime _ret = self->dateTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->dateTime());
}
QDate* QDateTimeEdit_Date(const QDateTimeEdit* self) {
QDate _ret = self->date();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->date());
}
QTime* QDateTimeEdit_Time(const QDateTimeEdit* self) {
QTime _ret = self->time();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(self->time());
}
QCalendar* QDateTimeEdit_Calendar(const QDateTimeEdit* self) {
QCalendar _ret = self->calendar();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCalendar*>(new QCalendar(_ret));
return new QCalendar(self->calendar());
}
void QDateTimeEdit_SetCalendar(QDateTimeEdit* self, QCalendar* calendar) {
@ -96,9 +88,7 @@ void QDateTimeEdit_SetCalendar(QDateTimeEdit* self, QCalendar* calendar) {
}
QDateTime* QDateTimeEdit_MinimumDateTime(const QDateTimeEdit* self) {
QDateTime _ret = self->minimumDateTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->minimumDateTime());
}
void QDateTimeEdit_ClearMinimumDateTime(QDateTimeEdit* self) {
@ -110,9 +100,7 @@ void QDateTimeEdit_SetMinimumDateTime(QDateTimeEdit* self, QDateTime* dt) {
}
QDateTime* QDateTimeEdit_MaximumDateTime(const QDateTimeEdit* self) {
QDateTime _ret = self->maximumDateTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->maximumDateTime());
}
void QDateTimeEdit_ClearMaximumDateTime(QDateTimeEdit* self) {
@ -128,9 +116,7 @@ void QDateTimeEdit_SetDateTimeRange(QDateTimeEdit* self, QDateTime* min, QDateTi
}
QDate* QDateTimeEdit_MinimumDate(const QDateTimeEdit* self) {
QDate _ret = self->minimumDate();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->minimumDate());
}
void QDateTimeEdit_SetMinimumDate(QDateTimeEdit* self, QDate* min) {
@ -142,9 +128,7 @@ void QDateTimeEdit_ClearMinimumDate(QDateTimeEdit* self) {
}
QDate* QDateTimeEdit_MaximumDate(const QDateTimeEdit* self) {
QDate _ret = self->maximumDate();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDate*>(new QDate(_ret));
return new QDate(self->maximumDate());
}
void QDateTimeEdit_SetMaximumDate(QDateTimeEdit* self, QDate* max) {
@ -160,9 +144,7 @@ void QDateTimeEdit_SetDateRange(QDateTimeEdit* self, QDate* min, QDate* max) {
}
QTime* QDateTimeEdit_MinimumTime(const QDateTimeEdit* self) {
QTime _ret = self->minimumTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(self->minimumTime());
}
void QDateTimeEdit_SetMinimumTime(QDateTimeEdit* self, QTime* min) {
@ -174,9 +156,7 @@ void QDateTimeEdit_ClearMinimumTime(QDateTimeEdit* self) {
}
QTime* QDateTimeEdit_MaximumTime(const QDateTimeEdit* self) {
QTime _ret = self->maximumTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTime*>(new QTime(_ret));
return new QTime(self->maximumTime());
}
void QDateTimeEdit_SetMaximumTime(QDateTimeEdit* self, QTime* max) {
@ -271,9 +251,7 @@ void QDateTimeEdit_SetTimeSpec(QDateTimeEdit* self, uintptr_t spec) {
}
QSize* QDateTimeEdit_SizeHint(const QDateTimeEdit* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
void QDateTimeEdit_Clear(QDateTimeEdit* self) {

View File

@ -85,15 +85,11 @@ void QDeadlineTimer_SetPreciseDeadline(QDeadlineTimer* self, long long secs) {
}
QDeadlineTimer* QDeadlineTimer_AddNSecs(QDeadlineTimer* dt, long long nsecs) {
QDeadlineTimer _ret = QDeadlineTimer::addNSecs(*dt, static_cast<qint64>(nsecs));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDeadlineTimer*>(new QDeadlineTimer(_ret));
return new QDeadlineTimer(QDeadlineTimer::addNSecs(*dt, static_cast<qint64>(nsecs)));
}
QDeadlineTimer* QDeadlineTimer_Current() {
QDeadlineTimer _ret = QDeadlineTimer::current();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDeadlineTimer*>(new QDeadlineTimer(_ret));
return new QDeadlineTimer(QDeadlineTimer::current());
}
QDeadlineTimer* QDeadlineTimer_OperatorPlusAssign(QDeadlineTimer* self, long long msecs) {
@ -137,9 +133,7 @@ void QDeadlineTimer_SetPreciseDeadline3(QDeadlineTimer* self, long long secs, lo
}
QDeadlineTimer* QDeadlineTimer_Current1(uintptr_t timerType) {
QDeadlineTimer _ret = QDeadlineTimer::current(static_cast<Qt::TimerType>(timerType));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDeadlineTimer*>(new QDeadlineTimer(_ret));
return new QDeadlineTimer(QDeadlineTimer::current(static_cast<Qt::TimerType>(timerType)));
}
void QDeadlineTimer_Delete(QDeadlineTimer* self) {

View File

@ -37,15 +37,11 @@ int QDesktopWidget_ScreenNumber(const QDesktopWidget* self) {
}
QRect* QDesktopWidget_ScreenGeometry(const QDesktopWidget* self, QWidget* widget) {
QRect _ret = self->screenGeometry(widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->screenGeometry(widget));
}
QRect* QDesktopWidget_AvailableGeometry(const QDesktopWidget* self, QWidget* widget) {
QRect _ret = self->availableGeometry(widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->availableGeometry(widget));
}
bool QDesktopWidget_IsVirtualDesktop(const QDesktopWidget* self) {
@ -73,27 +69,19 @@ QWidget* QDesktopWidget_Screen(QDesktopWidget* self) {
}
QRect* QDesktopWidget_ScreenGeometry2(const QDesktopWidget* self) {
QRect _ret = self->screenGeometry();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->screenGeometry());
}
QRect* QDesktopWidget_ScreenGeometryWithPoint(const QDesktopWidget* self, QPoint* point) {
QRect _ret = self->screenGeometry(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->screenGeometry(*point));
}
QRect* QDesktopWidget_AvailableGeometry2(const QDesktopWidget* self) {
QRect _ret = self->availableGeometry();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->availableGeometry());
}
QRect* QDesktopWidget_AvailableGeometryWithPoint(const QDesktopWidget* self, QPoint* point) {
QRect _ret = self->availableGeometry(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->availableGeometry(*point));
}
void QDesktopWidget_Resized(QDesktopWidget* self, int param1) {
@ -176,15 +164,11 @@ QWidget* QDesktopWidget_Screen1(QDesktopWidget* self, int screen) {
}
QRect* QDesktopWidget_ScreenGeometry1(const QDesktopWidget* self, int screen) {
QRect _ret = self->screenGeometry(static_cast<int>(screen));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->screenGeometry(static_cast<int>(screen)));
}
QRect* QDesktopWidget_AvailableGeometry1(const QDesktopWidget* self, int screen) {
QRect _ret = self->availableGeometry(static_cast<int>(screen));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->availableGeometry(static_cast<int>(screen)));
}
void QDesktopWidget_Delete(QDesktopWidget* self) {

View File

@ -56,15 +56,11 @@ bool QDial_NotchesVisible(const QDial* self) {
}
QSize* QDial_SizeHint(const QDial* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QDial_MinimumSizeHint(const QDial* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
void QDial_SetNotchesVisible(QDial* self, bool visible) {

View File

@ -65,15 +65,11 @@ QWidget* QDialog_Extension(const QDialog* self) {
}
QSize* QDialog_SizeHint(const QDialog* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QDialog_MinimumSizeHint(const QDialog* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
void QDialog_SetSizeGripEnabled(QDialog* self, bool sizeGripEnabled) {

View File

@ -104,7 +104,7 @@ void QDir_AddSearchPath(struct miqt_string* prefix, struct miqt_string* path) {
struct miqt_array* QDir_SearchPaths(struct miqt_string* prefix) {
QString prefix_QString = QString::fromUtf8(&prefix->data, prefix->len);
QStringList _ret = QDir::searchPaths(prefix_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -176,7 +176,7 @@ bool QDir_CdUp(QDir* self) {
struct miqt_array* QDir_NameFilters(const QDir* self) {
QStringList _ret = self->nameFilters();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -236,7 +236,7 @@ struct miqt_string* QDir_OperatorSubscript(const QDir* self, int param1) {
struct miqt_array* QDir_NameFiltersFromString(struct miqt_string* nameFilter) {
QString nameFilter_QString = QString::fromUtf8(&nameFilter->data, nameFilter->len);
QStringList _ret = QDir::nameFiltersFromString(nameFilter_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -252,7 +252,7 @@ struct miqt_array* QDir_NameFiltersFromString(struct miqt_string* nameFilter) {
struct miqt_array* QDir_EntryList(const QDir* self) {
QStringList _ret = self->entryList();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -274,7 +274,7 @@ struct miqt_array* QDir_EntryListWithNameFilters(const QDir* self, struct miqt_a
nameFilters_QList.push_back(QString::fromUtf8(& nameFilters_arr[i]->data, nameFilters_arr[i]->len));
}
QStringList _ret = self->entryList(nameFilters_QList);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -290,8 +290,8 @@ struct miqt_array* QDir_EntryListWithNameFilters(const QDir* self, struct miqt_a
struct miqt_array* QDir_EntryInfoList(const QDir* self) {
QFileInfoList _ret = self->entryInfoList();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}
@ -309,8 +309,8 @@ struct miqt_array* QDir_EntryInfoListWithNameFilters(const QDir* self, struct mi
nameFilters_QList.push_back(QString::fromUtf8(& nameFilters_arr[i]->data, nameFilters_arr[i]->len));
}
QFileInfoList _ret = self->entryInfoList(nameFilters_QList);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}
@ -404,8 +404,8 @@ bool QDir_ExistsWithName(const QDir* self, struct miqt_string* name) {
struct miqt_array* QDir_Drives() {
QFileInfoList _ret = QDir::drives();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}
@ -416,15 +416,11 @@ struct miqt_array* QDir_Drives() {
}
QChar* QDir_ListSeparator() {
QChar _ret = QDir::listSeparator();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(QDir::listSeparator());
}
QChar* QDir_Separator() {
QChar _ret = QDir::separator();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QChar*>(new QChar(_ret));
return new QChar(QDir::separator());
}
bool QDir_SetCurrent(struct miqt_string* path) {
@ -433,9 +429,7 @@ bool QDir_SetCurrent(struct miqt_string* path) {
}
QDir* QDir_Current() {
QDir _ret = QDir::current();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(QDir::current());
}
struct miqt_string* QDir_CurrentPath() {
@ -446,9 +440,7 @@ struct miqt_string* QDir_CurrentPath() {
}
QDir* QDir_Home() {
QDir _ret = QDir::home();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(QDir::home());
}
struct miqt_string* QDir_HomePath() {
@ -459,9 +451,7 @@ struct miqt_string* QDir_HomePath() {
}
QDir* QDir_Root() {
QDir _ret = QDir::root();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(QDir::root());
}
struct miqt_string* QDir_RootPath() {
@ -472,9 +462,7 @@ struct miqt_string* QDir_RootPath() {
}
QDir* QDir_Temp() {
QDir _ret = QDir::temp();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(QDir::temp());
}
struct miqt_string* QDir_TempPath() {
@ -519,7 +507,7 @@ bool QDir_IsEmpty1(const QDir* self, int filters) {
struct miqt_array* QDir_EntryList1(const QDir* self, int filters) {
QStringList _ret = self->entryList(static_cast<QDir::Filters>(filters));
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -535,7 +523,7 @@ struct miqt_array* QDir_EntryList1(const QDir* self, int filters) {
struct miqt_array* QDir_EntryList2(const QDir* self, int filters, int sort) {
QStringList _ret = self->entryList(static_cast<QDir::Filters>(filters), static_cast<QDir::SortFlags>(sort));
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -557,7 +545,7 @@ struct miqt_array* QDir_EntryList22(const QDir* self, struct miqt_array* /* of s
nameFilters_QList.push_back(QString::fromUtf8(& nameFilters_arr[i]->data, nameFilters_arr[i]->len));
}
QStringList _ret = self->entryList(nameFilters_QList, static_cast<QDir::Filters>(filters));
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -579,7 +567,7 @@ struct miqt_array* QDir_EntryList3(const QDir* self, struct miqt_array* /* of st
nameFilters_QList.push_back(QString::fromUtf8(& nameFilters_arr[i]->data, nameFilters_arr[i]->len));
}
QStringList _ret = self->entryList(nameFilters_QList, static_cast<QDir::Filters>(filters), static_cast<QDir::SortFlags>(sort));
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -595,8 +583,8 @@ struct miqt_array* QDir_EntryList3(const QDir* self, struct miqt_array* /* of st
struct miqt_array* QDir_EntryInfoList1(const QDir* self, int filters) {
QFileInfoList _ret = self->entryInfoList(static_cast<QDir::Filters>(filters));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}
@ -608,8 +596,8 @@ struct miqt_array* QDir_EntryInfoList1(const QDir* self, int filters) {
struct miqt_array* QDir_EntryInfoList2(const QDir* self, int filters, int sort) {
QFileInfoList _ret = self->entryInfoList(static_cast<QDir::Filters>(filters), static_cast<QDir::SortFlags>(sort));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}
@ -627,8 +615,8 @@ struct miqt_array* QDir_EntryInfoList22(const QDir* self, struct miqt_array* /*
nameFilters_QList.push_back(QString::fromUtf8(& nameFilters_arr[i]->data, nameFilters_arr[i]->len));
}
QFileInfoList _ret = self->entryInfoList(nameFilters_QList, static_cast<QDir::Filters>(filters));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}
@ -646,8 +634,8 @@ struct miqt_array* QDir_EntryInfoList3(const QDir* self, struct miqt_array* /* o
nameFilters_QList.push_back(QString::fromUtf8(& nameFilters_arr[i]->data, nameFilters_arr[i]->len));
}
QFileInfoList _ret = self->entryInfoList(nameFilters_QList, static_cast<QDir::Filters>(filters), static_cast<QDir::SortFlags>(sort));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QFileInfo** _arr = static_cast<QFileInfo**>(malloc(sizeof(QFileInfo*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QFileInfo(_ret[i]);
}

View File

@ -96,9 +96,7 @@ struct miqt_string* QDirIterator_FilePath(const QDirIterator* self) {
}
QFileInfo* QDirIterator_FileInfo(const QDirIterator* self) {
QFileInfo _ret = self->fileInfo();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFileInfo*>(new QFileInfo(_ret));
return new QFileInfo(self->fileInfo());
}
struct miqt_string* QDirIterator_Path(const QDirIterator* self) {

View File

@ -62,15 +62,11 @@ struct miqt_string* QDirModel_TrUtf8(const char* s) {
}
QModelIndex* QDirModel_Index(const QDirModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QDirModel_Parent(const QDirModel* self, QModelIndex* child) {
QModelIndex _ret = self->parent(*child);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent(*child));
}
int QDirModel_RowCount(const QDirModel* self) {
@ -82,9 +78,7 @@ int QDirModel_ColumnCount(const QDirModel* self) {
}
QVariant* QDirModel_Data(const QDirModel* self, QModelIndex* index) {
QVariant _ret = self->data(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index));
}
bool QDirModel_SetData(QDirModel* self, QModelIndex* index, QVariant* value) {
@ -92,9 +86,7 @@ bool QDirModel_SetData(QDirModel* self, QModelIndex* index, QVariant* value) {
}
QVariant* QDirModel_HeaderData(const QDirModel* self, int section, uintptr_t orientation) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation)));
}
bool QDirModel_HasChildren(const QDirModel* self) {
@ -112,7 +104,7 @@ void QDirModel_Sort(QDirModel* self, int column) {
struct miqt_array* QDirModel_MimeTypes(const QDirModel* self) {
QStringList _ret = self->mimeTypes();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -165,7 +157,7 @@ void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array* /* of struct m
struct miqt_array* QDirModel_NameFilters(const QDirModel* self) {
QStringList _ret = self->nameFilters();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -223,9 +215,7 @@ bool QDirModel_LazyChildCount(const QDirModel* self) {
QModelIndex* QDirModel_IndexWithPath(const QDirModel* self, struct miqt_string* path) {
QString path_QString = QString::fromUtf8(&path->data, path->len);
QModelIndex _ret = self->index(path_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(path_QString));
}
bool QDirModel_IsDir(const QDirModel* self, QModelIndex* index) {
@ -234,9 +224,7 @@ bool QDirModel_IsDir(const QDirModel* self, QModelIndex* index) {
QModelIndex* QDirModel_Mkdir(QDirModel* self, QModelIndex* parent, struct miqt_string* name) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
QModelIndex _ret = self->mkdir(*parent, name_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mkdir(*parent, name_QString));
}
bool QDirModel_Rmdir(QDirModel* self, QModelIndex* index) {
@ -262,15 +250,11 @@ struct miqt_string* QDirModel_FileName(const QDirModel* self, QModelIndex* index
}
QIcon* QDirModel_FileIcon(const QDirModel* self, QModelIndex* index) {
QIcon _ret = self->fileIcon(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->fileIcon(*index));
}
QFileInfo* QDirModel_FileInfo(const QDirModel* self, QModelIndex* index) {
QFileInfo _ret = self->fileInfo(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFileInfo*>(new QFileInfo(_ret));
return new QFileInfo(self->fileInfo(*index));
}
void QDirModel_Refresh(QDirModel* self) {
@ -306,9 +290,7 @@ struct miqt_string* QDirModel_TrUtf83(const char* s, const char* c, int n) {
}
QModelIndex* QDirModel_Index3(const QDirModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
int QDirModel_RowCount1(const QDirModel* self, QModelIndex* parent) {
@ -320,9 +302,7 @@ int QDirModel_ColumnCount1(const QDirModel* self, QModelIndex* parent) {
}
QVariant* QDirModel_Data2(const QDirModel* self, QModelIndex* index, int role) {
QVariant _ret = self->data(*index, static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index, static_cast<int>(role)));
}
bool QDirModel_SetData3(QDirModel* self, QModelIndex* index, QVariant* value, int role) {
@ -330,9 +310,7 @@ bool QDirModel_SetData3(QDirModel* self, QModelIndex* index, QVariant* value, in
}
QVariant* QDirModel_HeaderData3(const QDirModel* self, int section, uintptr_t orientation, int role) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
}
bool QDirModel_HasChildren1(const QDirModel* self, QModelIndex* index) {
@ -345,9 +323,7 @@ void QDirModel_Sort2(QDirModel* self, int column, uintptr_t order) {
QModelIndex* QDirModel_Index2(const QDirModel* self, struct miqt_string* path, int column) {
QString path_QString = QString::fromUtf8(&path->data, path->len);
QModelIndex _ret = self->index(path_QString, static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(path_QString, static_cast<int>(column)));
}
void QDirModel_Refresh1(QDirModel* self, QModelIndex* parent) {

View File

@ -46,9 +46,7 @@ void QDrag_SetPixmap(QDrag* self, QPixmap* pixmap) {
}
QPixmap* QDrag_Pixmap(const QDrag* self) {
QPixmap _ret = self->pixmap();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap());
}
void QDrag_SetHotSpot(QDrag* self, QPoint* hotspot) {
@ -56,9 +54,7 @@ void QDrag_SetHotSpot(QDrag* self, QPoint* hotspot) {
}
QPoint* QDrag_HotSpot(const QDrag* self) {
QPoint _ret = self->hotSpot();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->hotSpot());
}
QObject* QDrag_Source(const QDrag* self) {
@ -89,9 +85,7 @@ void QDrag_SetDragCursor(QDrag* self, QPixmap* cursor, uintptr_t action) {
}
QPixmap* QDrag_DragCursor(const QDrag* self, uintptr_t action) {
QPixmap _ret = self->dragCursor(static_cast<Qt::DropAction>(action));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->dragCursor(static_cast<Qt::DropAction>(action)));
}
int QDrag_SupportedActions(const QDrag* self) {

View File

@ -67,8 +67,8 @@ void QEasingCurve_AddTCBSegment(QEasingCurve* self, QPointF* nextPoint, double t
struct miqt_array* QEasingCurve_ToCubicSpline(const QEasingCurve* self) {
QVector<QPointF> _ret = self->toCubicSpline();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPointF** _arr = static_cast<QPointF**>(malloc(sizeof(QPointF**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPointF** _arr = static_cast<QPointF**>(malloc(sizeof(QPointF*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QPointF(_ret[i]);
}

View File

@ -106,15 +106,11 @@ QEnterEvent* QEnterEvent_new2(QEnterEvent* param1) {
}
QPoint* QEnterEvent_Pos(const QEnterEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPoint* QEnterEvent_GlobalPos(const QEnterEvent* self) {
QPoint _ret = self->globalPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->globalPos());
}
int QEnterEvent_X(const QEnterEvent* self) {
@ -176,15 +172,11 @@ QMouseEvent* QMouseEvent_new5(QMouseEvent* param1) {
}
QPoint* QMouseEvent_Pos(const QMouseEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPoint* QMouseEvent_GlobalPos(const QMouseEvent* self) {
QPoint _ret = self->globalPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->globalPos());
}
int QMouseEvent_X(const QMouseEvent* self) {
@ -262,15 +254,11 @@ QHoverEvent* QHoverEvent_new3(uintptr_t typeVal, QPointF* pos, QPointF* oldPos,
}
QPoint* QHoverEvent_Pos(const QHoverEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPoint* QHoverEvent_OldPos(const QHoverEvent* self) {
QPoint _ret = self->oldPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->oldPos());
}
QPointF* QHoverEvent_PosF(const QHoverEvent* self) {
@ -334,15 +322,11 @@ QWheelEvent* QWheelEvent_new11(QPointF* pos, QPointF* globalPos, QPoint* pixelDe
}
QPoint* QWheelEvent_PixelDelta(const QWheelEvent* self) {
QPoint _ret = self->pixelDelta();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pixelDelta());
}
QPoint* QWheelEvent_AngleDelta(const QWheelEvent* self) {
QPoint _ret = self->angleDelta();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->angleDelta());
}
int QWheelEvent_Delta(const QWheelEvent* self) {
@ -355,15 +339,11 @@ uintptr_t QWheelEvent_Orientation(const QWheelEvent* self) {
}
QPoint* QWheelEvent_Pos(const QWheelEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPoint* QWheelEvent_GlobalPos(const QWheelEvent* self) {
QPoint _ret = self->globalPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->globalPos());
}
int QWheelEvent_X(const QWheelEvent* self) {
@ -395,15 +375,11 @@ QPointF* QWheelEvent_GlobalPosF(const QWheelEvent* self) {
}
QPointF* QWheelEvent_Position(const QWheelEvent* self) {
QPointF _ret = self->position();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->position());
}
QPointF* QWheelEvent_GlobalPosition(const QWheelEvent* self) {
QPointF _ret = self->globalPosition();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->globalPosition());
}
int QWheelEvent_Buttons(const QWheelEvent* self) {
@ -442,15 +418,11 @@ QTabletEvent* QTabletEvent_new3(QTabletEvent* param1) {
}
QPoint* QTabletEvent_Pos(const QTabletEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPoint* QTabletEvent_GlobalPos(const QTabletEvent* self) {
QPoint _ret = self->globalPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->globalPos());
}
QPointF* QTabletEvent_PosF(const QTabletEvent* self) {
@ -568,15 +540,11 @@ double QNativeGestureEvent_Value(const QNativeGestureEvent* self) {
}
QPoint* QNativeGestureEvent_Pos(const QNativeGestureEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPoint* QNativeGestureEvent_GlobalPos(const QNativeGestureEvent* self) {
QPoint _ret = self->globalPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->globalPos());
}
QPointF* QNativeGestureEvent_LocalPos(const QNativeGestureEvent* self) {
@ -1026,9 +994,7 @@ void QInputMethodQueryEvent_SetValue(QInputMethodQueryEvent* self, uintptr_t que
}
QVariant* QInputMethodQueryEvent_Value(const QInputMethodQueryEvent* self, uintptr_t query) {
QVariant _ret = self->value(static_cast<Qt::InputMethodQuery>(query));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->value(static_cast<Qt::InputMethodQuery>(query)));
}
void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self) {
@ -1048,9 +1014,7 @@ QDropEvent* QDropEvent_new3(QPointF* pos, int actions, QMimeData* data, int butt
}
QPoint* QDropEvent_Pos(const QDropEvent* self) {
QPoint _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->pos());
}
QPointF* QDropEvent_PosF(const QDropEvent* self) {
@ -1117,9 +1081,7 @@ QDragMoveEvent* QDragMoveEvent_new3(QPoint* pos, int actions, QMimeData* data, i
}
QRect* QDragMoveEvent_AnswerRect(const QDragMoveEvent* self) {
QRect _ret = self->answerRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->answerRect());
}
void QDragMoveEvent_Accept(QDragMoveEvent* self) {
@ -1303,9 +1265,7 @@ struct miqt_string* QFileOpenEvent_File(const QFileOpenEvent* self) {
}
QUrl* QFileOpenEvent_Url(const QFileOpenEvent* self) {
QUrl _ret = self->url();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->url());
}
bool QFileOpenEvent_OpenFile(const QFileOpenEvent* self, QFile* file, int flags) {
@ -1396,9 +1356,7 @@ QPointingDeviceUniqueId* QPointingDeviceUniqueId_new2(QPointingDeviceUniqueId* p
}
QPointingDeviceUniqueId* QPointingDeviceUniqueId_FromNumericId(long long id) {
QPointingDeviceUniqueId _ret = QPointingDeviceUniqueId::fromNumericId(static_cast<qint64>(id));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointingDeviceUniqueId*>(new QPointingDeviceUniqueId(_ret));
return new QPointingDeviceUniqueId(QPointingDeviceUniqueId::fromNumericId(static_cast<qint64>(id)));
}
bool QPointingDeviceUniqueId_IsValid(const QPointingDeviceUniqueId* self) {
@ -1499,27 +1457,19 @@ QScrollPrepareEvent* QScrollPrepareEvent_new2(QScrollPrepareEvent* param1) {
}
QPointF* QScrollPrepareEvent_StartPos(const QScrollPrepareEvent* self) {
QPointF _ret = self->startPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->startPos());
}
QSizeF* QScrollPrepareEvent_ViewportSize(const QScrollPrepareEvent* self) {
QSizeF _ret = self->viewportSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->viewportSize());
}
QRectF* QScrollPrepareEvent_ContentPosRange(const QScrollPrepareEvent* self) {
QRectF _ret = self->contentPosRange();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->contentPosRange());
}
QPointF* QScrollPrepareEvent_ContentPos(const QScrollPrepareEvent* self) {
QPointF _ret = self->contentPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->contentPos());
}
void QScrollPrepareEvent_SetViewportSize(QScrollPrepareEvent* self, QSizeF* size) {
@ -1547,15 +1497,11 @@ QScrollEvent* QScrollEvent_new2(QScrollEvent* param1) {
}
QPointF* QScrollEvent_ContentPos(const QScrollEvent* self) {
QPointF _ret = self->contentPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->contentPos());
}
QPointF* QScrollEvent_OvershootDistance(const QScrollEvent* self) {
QPointF _ret = self->overshootDistance();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->overshootDistance());
}
uintptr_t QScrollEvent_ScrollState(const QScrollEvent* self) {
@ -1642,9 +1588,7 @@ int QTouchEvent__TouchPoint_Id(const QTouchEvent__TouchPoint* self) {
}
QPointingDeviceUniqueId* QTouchEvent__TouchPoint_UniqueId(const QTouchEvent__TouchPoint* self) {
QPointingDeviceUniqueId _ret = self->uniqueId();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointingDeviceUniqueId*>(new QPointingDeviceUniqueId(_ret));
return new QPointingDeviceUniqueId(self->uniqueId());
}
uintptr_t QTouchEvent__TouchPoint_State(const QTouchEvent__TouchPoint* self) {
@ -1653,93 +1597,63 @@ uintptr_t QTouchEvent__TouchPoint_State(const QTouchEvent__TouchPoint* self) {
}
QPointF* QTouchEvent__TouchPoint_Pos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
QPointF* QTouchEvent__TouchPoint_StartPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->startPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->startPos());
}
QPointF* QTouchEvent__TouchPoint_LastPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->lastPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastPos());
}
QPointF* QTouchEvent__TouchPoint_ScenePos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
QPointF* QTouchEvent__TouchPoint_StartScenePos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->startScenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->startScenePos());
}
QPointF* QTouchEvent__TouchPoint_LastScenePos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->lastScenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastScenePos());
}
QPointF* QTouchEvent__TouchPoint_ScreenPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->screenPos());
}
QPointF* QTouchEvent__TouchPoint_StartScreenPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->startScreenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->startScreenPos());
}
QPointF* QTouchEvent__TouchPoint_LastScreenPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->lastScreenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastScreenPos());
}
QPointF* QTouchEvent__TouchPoint_NormalizedPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->normalizedPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->normalizedPos());
}
QPointF* QTouchEvent__TouchPoint_StartNormalizedPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->startNormalizedPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->startNormalizedPos());
}
QPointF* QTouchEvent__TouchPoint_LastNormalizedPos(const QTouchEvent__TouchPoint* self) {
QPointF _ret = self->lastNormalizedPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastNormalizedPos());
}
QRectF* QTouchEvent__TouchPoint_Rect(const QTouchEvent__TouchPoint* self) {
QRectF _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->rect());
}
QRectF* QTouchEvent__TouchPoint_SceneRect(const QTouchEvent__TouchPoint* self) {
QRectF _ret = self->sceneRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->sceneRect());
}
QRectF* QTouchEvent__TouchPoint_ScreenRect(const QTouchEvent__TouchPoint* self) {
QRectF _ret = self->screenRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->screenRect());
}
void QTouchEvent__TouchPoint_SetRect(QTouchEvent__TouchPoint* self, QRectF* rect) {
@ -1763,15 +1677,11 @@ double QTouchEvent__TouchPoint_Rotation(const QTouchEvent__TouchPoint* self) {
}
QSizeF* QTouchEvent__TouchPoint_EllipseDiameters(const QTouchEvent__TouchPoint* self) {
QSizeF _ret = self->ellipseDiameters();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->ellipseDiameters());
}
QVector2D* QTouchEvent__TouchPoint_Velocity(const QTouchEvent__TouchPoint* self) {
QVector2D _ret = self->velocity();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVector2D*>(new QVector2D(_ret));
return new QVector2D(self->velocity());
}
int QTouchEvent__TouchPoint_Flags(const QTouchEvent__TouchPoint* self) {
@ -1781,8 +1691,8 @@ int QTouchEvent__TouchPoint_Flags(const QTouchEvent__TouchPoint* self) {
struct miqt_array* QTouchEvent__TouchPoint_RawScreenPositions(const QTouchEvent__TouchPoint* self) {
QVector<QPointF> _ret = self->rawScreenPositions();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPointF** _arr = static_cast<QPointF**>(malloc(sizeof(QPointF**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPointF** _arr = static_cast<QPointF**>(malloc(sizeof(QPointF*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QPointF(_ret[i]);
}

View File

@ -29,9 +29,7 @@ bool QtPrivate__ExceptionStore_HasException(const QtPrivate__ExceptionStore* sel
}
QtPrivate__ExceptionHolder* QtPrivate__ExceptionStore_Exception(QtPrivate__ExceptionStore* self) {
QtPrivate::ExceptionHolder _ret = self->exception();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtPrivate::ExceptionHolder*>(new QtPrivate::ExceptionHolder(_ret));
return new QtPrivate::ExceptionHolder(self->exception());
}
void QtPrivate__ExceptionStore_ThrowPossibleException(QtPrivate__ExceptionStore* self) {

View File

@ -9,7 +9,7 @@
struct miqt_array* QFactoryInterface_Keys(const QFactoryInterface* self) {
QStringList _ret = self->keys();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -59,9 +59,7 @@ void QFile_SetFileName(QFile* self, struct miqt_string* name) {
QByteArray* QFile_EncodeName(struct miqt_string* fileName) {
QString fileName_QString = QString::fromUtf8(&fileName->data, fileName->len);
QByteArray _ret = QFile::encodeName(fileName_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(QFile::encodeName(fileName_QString));
}
struct miqt_string* QFile_DecodeName(QByteArray* localFileName) {

View File

@ -96,9 +96,7 @@ bool QFileDevice_Unmap(QFileDevice* self, unsigned char* address) {
}
QDateTime* QFileDevice_FileTime(const QFileDevice* self, uintptr_t time) {
QDateTime _ret = self->fileTime(static_cast<QFileDevice::FileTime>(time));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->fileTime(static_cast<QFileDevice::FileTime>(time)));
}
bool QFileDevice_SetFileTime(QFileDevice* self, QDateTime* newDate, uintptr_t fileTime) {

View File

@ -73,9 +73,7 @@ void QFileDialog_SetDirectoryWithDirectory(QFileDialog* self, QDir* directory) {
}
QDir* QFileDialog_Directory(const QFileDialog* self) {
QDir _ret = self->directory();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(self->directory());
}
void QFileDialog_SetDirectoryUrl(QFileDialog* self, QUrl* directory) {
@ -83,9 +81,7 @@ void QFileDialog_SetDirectoryUrl(QFileDialog* self, QUrl* directory) {
}
QUrl* QFileDialog_DirectoryUrl(const QFileDialog* self) {
QUrl _ret = self->directoryUrl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->directoryUrl());
}
void QFileDialog_SelectFile(QFileDialog* self, struct miqt_string* filename) {
@ -95,7 +91,7 @@ void QFileDialog_SelectFile(QFileDialog* self, struct miqt_string* filename) {
struct miqt_array* QFileDialog_SelectedFiles(const QFileDialog* self) {
QStringList _ret = self->selectedFiles();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -115,8 +111,8 @@ void QFileDialog_SelectUrl(QFileDialog* self, QUrl* url) {
struct miqt_array* QFileDialog_SelectedUrls(const QFileDialog* self) {
QList<QUrl> _ret = self->selectedUrls();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}
@ -151,7 +147,7 @@ void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array* /* of stru
struct miqt_array* QFileDialog_NameFilters(const QFileDialog* self) {
QStringList _ret = self->nameFilters();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -196,7 +192,7 @@ void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array* /* of
struct miqt_array* QFileDialog_MimeTypeFilters(const QFileDialog* self) {
QStringList _ret = self->mimeTypeFilters();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -279,8 +275,8 @@ void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array* /* of QUrl
struct miqt_array* QFileDialog_SidebarUrls(const QFileDialog* self) {
QList<QUrl> _ret = self->sidebarUrls();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}
@ -291,9 +287,7 @@ struct miqt_array* QFileDialog_SidebarUrls(const QFileDialog* self) {
}
QByteArray* QFileDialog_SaveState(const QFileDialog* self) {
QByteArray _ret = self->saveState();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->saveState());
}
bool QFileDialog_RestoreState(QFileDialog* self, QByteArray* state) {
@ -332,7 +326,7 @@ void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array* /* of struct m
struct miqt_array* QFileDialog_History(const QFileDialog* self) {
QStringList _ret = self->history();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -386,7 +380,7 @@ void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array* /* of
struct miqt_array* QFileDialog_SupportedSchemes(const QFileDialog* self) {
QStringList _ret = self->supportedSchemes();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -457,7 +451,7 @@ void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array* /* of struc
void QFileDialog_connect_FilesSelected(QFileDialog* self, void* slot) {
QFileDialog::connect(self, static_cast<void (QFileDialog::*)(const QStringList&)>(&QFileDialog::filesSelected), self, [=](const QStringList& files) {
const QStringList& files_ret = files;
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** files_arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * files_ret.length()));
for (size_t i = 0, e = files_ret.length(); i < e; ++i) {
QString files_lv_ret = files_ret[i];
@ -529,8 +523,8 @@ void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array* /* of QUrl*
void QFileDialog_connect_UrlsSelected(QFileDialog* self, void* slot) {
QFileDialog::connect(self, static_cast<void (QFileDialog::*)(const QList<QUrl>&)>(&QFileDialog::urlsSelected), self, [=](const QList<QUrl>& urls) {
const QList<QUrl>& urls_ret = urls;
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** urls_arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * urls_ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** urls_arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * urls_ret.length()));
for (size_t i = 0, e = urls_ret.length(); i < e; ++i) {
urls_arr[i] = new QUrl(urls_ret[i]);
}
@ -591,9 +585,7 @@ struct miqt_string* QFileDialog_GetOpenFileName() {
}
QUrl* QFileDialog_GetOpenFileUrl() {
QUrl _ret = QFileDialog::getOpenFileUrl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getOpenFileUrl());
}
struct miqt_string* QFileDialog_GetSaveFileName() {
@ -604,9 +596,7 @@ struct miqt_string* QFileDialog_GetSaveFileName() {
}
QUrl* QFileDialog_GetSaveFileUrl() {
QUrl _ret = QFileDialog::getSaveFileUrl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getSaveFileUrl());
}
struct miqt_string* QFileDialog_GetExistingDirectory() {
@ -617,14 +607,12 @@ struct miqt_string* QFileDialog_GetExistingDirectory() {
}
QUrl* QFileDialog_GetExistingDirectoryUrl() {
QUrl _ret = QFileDialog::getExistingDirectoryUrl();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getExistingDirectoryUrl());
}
struct miqt_array* QFileDialog_GetOpenFileNames() {
QStringList _ret = QFileDialog::getOpenFileNames();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -640,8 +628,8 @@ struct miqt_array* QFileDialog_GetOpenFileNames() {
struct miqt_array* QFileDialog_GetOpenFileUrls() {
QList<QUrl> _ret = QFileDialog::getOpenFileUrls();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}
@ -722,31 +710,23 @@ struct miqt_string* QFileDialog_GetOpenFileName4(QWidget* parent, struct miqt_st
}
QUrl* QFileDialog_GetOpenFileUrl1(QWidget* parent) {
QUrl _ret = QFileDialog::getOpenFileUrl(parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getOpenFileUrl(parent));
}
QUrl* QFileDialog_GetOpenFileUrl2(QWidget* parent, struct miqt_string* caption) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getOpenFileUrl(parent, caption_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getOpenFileUrl(parent, caption_QString));
}
QUrl* QFileDialog_GetOpenFileUrl3(QWidget* parent, struct miqt_string* caption, QUrl* dir) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getOpenFileUrl(parent, caption_QString, *dir);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getOpenFileUrl(parent, caption_QString, *dir));
}
QUrl* QFileDialog_GetOpenFileUrl4(QWidget* parent, struct miqt_string* caption, QUrl* dir, struct miqt_string* filter) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QString filter_QString = QString::fromUtf8(&filter->data, filter->len);
QUrl _ret = QFileDialog::getOpenFileUrl(parent, caption_QString, *dir, filter_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getOpenFileUrl(parent, caption_QString, *dir, filter_QString));
}
struct miqt_string* QFileDialog_GetSaveFileName1(QWidget* parent) {
@ -784,31 +764,23 @@ struct miqt_string* QFileDialog_GetSaveFileName4(QWidget* parent, struct miqt_st
}
QUrl* QFileDialog_GetSaveFileUrl1(QWidget* parent) {
QUrl _ret = QFileDialog::getSaveFileUrl(parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getSaveFileUrl(parent));
}
QUrl* QFileDialog_GetSaveFileUrl2(QWidget* parent, struct miqt_string* caption) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getSaveFileUrl(parent, caption_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getSaveFileUrl(parent, caption_QString));
}
QUrl* QFileDialog_GetSaveFileUrl3(QWidget* parent, struct miqt_string* caption, QUrl* dir) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getSaveFileUrl(parent, caption_QString, *dir);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getSaveFileUrl(parent, caption_QString, *dir));
}
QUrl* QFileDialog_GetSaveFileUrl4(QWidget* parent, struct miqt_string* caption, QUrl* dir, struct miqt_string* filter) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QString filter_QString = QString::fromUtf8(&filter->data, filter->len);
QUrl _ret = QFileDialog::getSaveFileUrl(parent, caption_QString, *dir, filter_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getSaveFileUrl(parent, caption_QString, *dir, filter_QString));
}
struct miqt_string* QFileDialog_GetExistingDirectory1(QWidget* parent) {
@ -845,30 +817,22 @@ struct miqt_string* QFileDialog_GetExistingDirectory4(QWidget* parent, struct mi
}
QUrl* QFileDialog_GetExistingDirectoryUrl1(QWidget* parent) {
QUrl _ret = QFileDialog::getExistingDirectoryUrl(parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getExistingDirectoryUrl(parent));
}
QUrl* QFileDialog_GetExistingDirectoryUrl2(QWidget* parent, struct miqt_string* caption) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getExistingDirectoryUrl(parent, caption_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString));
}
QUrl* QFileDialog_GetExistingDirectoryUrl3(QWidget* parent, struct miqt_string* caption, QUrl* dir) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir));
}
QUrl* QFileDialog_GetExistingDirectoryUrl4(QWidget* parent, struct miqt_string* caption, QUrl* dir, int options) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QUrl _ret = QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast<QFileDialog::Options>(options));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast<QFileDialog::Options>(options)));
}
QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string* caption, QUrl* dir, int options, struct miqt_array* /* of struct miqt_string* */ supportedSchemes) {
@ -879,14 +843,12 @@ QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string*
for(size_t i = 0; i < supportedSchemes->len; ++i) {
supportedSchemes_QList.push_back(QString::fromUtf8(& supportedSchemes_arr[i]->data, supportedSchemes_arr[i]->len));
}
QUrl _ret = QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast<QFileDialog::Options>(options), supportedSchemes_QList);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast<QFileDialog::Options>(options), supportedSchemes_QList));
}
struct miqt_array* QFileDialog_GetOpenFileNames1(QWidget* parent) {
QStringList _ret = QFileDialog::getOpenFileNames(parent);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -903,7 +865,7 @@ struct miqt_array* QFileDialog_GetOpenFileNames1(QWidget* parent) {
struct miqt_array* QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string* caption) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -921,7 +883,7 @@ struct miqt_array* QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_st
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QString dir_QString = QString::fromUtf8(&dir->data, dir->len);
QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString, dir_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -940,7 +902,7 @@ struct miqt_array* QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_st
QString dir_QString = QString::fromUtf8(&dir->data, dir->len);
QString filter_QString = QString::fromUtf8(&filter->data, filter->len);
QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString, dir_QString, filter_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -956,8 +918,8 @@ struct miqt_array* QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_st
struct miqt_array* QFileDialog_GetOpenFileUrls1(QWidget* parent) {
QList<QUrl> _ret = QFileDialog::getOpenFileUrls(parent);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}
@ -970,8 +932,8 @@ struct miqt_array* QFileDialog_GetOpenFileUrls1(QWidget* parent) {
struct miqt_array* QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string* caption) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QList<QUrl> _ret = QFileDialog::getOpenFileUrls(parent, caption_QString);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}
@ -984,8 +946,8 @@ struct miqt_array* QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_str
struct miqt_array* QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string* caption, QUrl* dir) {
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QList<QUrl> _ret = QFileDialog::getOpenFileUrls(parent, caption_QString, *dir);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}
@ -999,8 +961,8 @@ struct miqt_array* QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_str
QString caption_QString = QString::fromUtf8(&caption->data, caption->len);
QString filter_QString = QString::fromUtf8(&filter->data, filter->len);
QList<QUrl> _ret = QFileDialog::getOpenFileUrls(parent, caption_QString, *dir, filter_QString);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QUrl** _arr = static_cast<QUrl**>(malloc(sizeof(QUrl*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QUrl(_ret[i]);
}

View File

@ -13,15 +13,11 @@ QFileIconProvider* QFileIconProvider_new() {
}
QIcon* QFileIconProvider_Icon(const QFileIconProvider* self, uintptr_t typeVal) {
QIcon _ret = self->icon(static_cast<QFileIconProvider::IconType>(typeVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->icon(static_cast<QFileIconProvider::IconType>(typeVal)));
}
QIcon* QFileIconProvider_IconWithInfo(const QFileIconProvider* self, QFileInfo* info) {
QIcon _ret = self->icon(*info);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->icon(*info));
}
struct miqt_string* QFileIconProvider_Type(const QFileIconProvider* self, QFileInfo* info) {

View File

@ -159,15 +159,11 @@ struct miqt_string* QFileInfo_CanonicalPath(const QFileInfo* self) {
}
QDir* QFileInfo_Dir(const QFileInfo* self) {
QDir _ret = self->dir();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(self->dir());
}
QDir* QFileInfo_AbsoluteDir(const QFileInfo* self) {
QDir _ret = self->absoluteDir();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(self->absoluteDir());
}
bool QFileInfo_IsReadable(const QFileInfo* self) {
@ -284,39 +280,27 @@ long long QFileInfo_Size(const QFileInfo* self) {
}
QDateTime* QFileInfo_Created(const QFileInfo* self) {
QDateTime _ret = self->created();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->created());
}
QDateTime* QFileInfo_BirthTime(const QFileInfo* self) {
QDateTime _ret = self->birthTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->birthTime());
}
QDateTime* QFileInfo_MetadataChangeTime(const QFileInfo* self) {
QDateTime _ret = self->metadataChangeTime();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->metadataChangeTime());
}
QDateTime* QFileInfo_LastModified(const QFileInfo* self) {
QDateTime _ret = self->lastModified();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->lastModified());
}
QDateTime* QFileInfo_LastRead(const QFileInfo* self) {
QDateTime _ret = self->lastRead();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->lastRead());
}
QDateTime* QFileInfo_FileTime(const QFileInfo* self, uintptr_t time) {
QDateTime _ret = self->fileTime(static_cast<QFile::FileTime>(time));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->fileTime(static_cast<QFile::FileTime>(time)));
}
bool QFileInfo_Caching(const QFileInfo* self) {

View File

@ -45,14 +45,12 @@ struct miqt_string* QFileSelector_Select(const QFileSelector* self, struct miqt_
}
QUrl* QFileSelector_SelectWithFilePath(const QFileSelector* self, QUrl* filePath) {
QUrl _ret = self->select(*filePath);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QUrl*>(new QUrl(_ret));
return new QUrl(self->select(*filePath));
}
struct miqt_array* QFileSelector_ExtraSelectors(const QFileSelector* self) {
QStringList _ret = self->extraSelectors();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -78,7 +76,7 @@ void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array* /*
struct miqt_array* QFileSelector_AllSelectors(const QFileSelector* self) {
QStringList _ret = self->allSelectors();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -99,28 +99,20 @@ void QFileSystemModel_connect_DirectoryLoaded(QFileSystemModel* self, void* slot
}
QModelIndex* QFileSystemModel_Index(const QFileSystemModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QFileSystemModel_IndexWithPath(const QFileSystemModel* self, struct miqt_string* path) {
QString path_QString = QString::fromUtf8(&path->data, path->len);
QModelIndex _ret = self->index(path_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(path_QString));
}
QModelIndex* QFileSystemModel_Parent(const QFileSystemModel* self, QModelIndex* child) {
QModelIndex _ret = self->parent(*child);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent(*child));
}
QModelIndex* QFileSystemModel_Sibling(const QFileSystemModel* self, int row, int column, QModelIndex* idx) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column), *idx);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column), *idx));
}
bool QFileSystemModel_HasChildren(const QFileSystemModel* self) {
@ -144,15 +136,11 @@ int QFileSystemModel_ColumnCount(const QFileSystemModel* self) {
}
QVariant* QFileSystemModel_MyComputer(const QFileSystemModel* self) {
QVariant _ret = self->myComputer();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->myComputer());
}
QVariant* QFileSystemModel_Data(const QFileSystemModel* self, QModelIndex* index) {
QVariant _ret = self->data(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index));
}
bool QFileSystemModel_SetData(QFileSystemModel* self, QModelIndex* index, QVariant* value) {
@ -160,9 +148,7 @@ bool QFileSystemModel_SetData(QFileSystemModel* self, QModelIndex* index, QVaria
}
QVariant* QFileSystemModel_HeaderData(const QFileSystemModel* self, int section, uintptr_t orientation) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation)));
}
int QFileSystemModel_Flags(const QFileSystemModel* self, QModelIndex* index) {
@ -176,7 +162,7 @@ void QFileSystemModel_Sort(QFileSystemModel* self, int column) {
struct miqt_array* QFileSystemModel_MimeTypes(const QFileSystemModel* self) {
QStringList _ret = self->mimeTypes();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -211,9 +197,7 @@ int QFileSystemModel_SupportedDropActions(const QFileSystemModel* self) {
QModelIndex* QFileSystemModel_SetRootPath(QFileSystemModel* self, struct miqt_string* path) {
QString path_QString = QString::fromUtf8(&path->data, path->len);
QModelIndex _ret = self->setRootPath(path_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->setRootPath(path_QString));
}
struct miqt_string* QFileSystemModel_RootPath(const QFileSystemModel* self) {
@ -224,9 +208,7 @@ struct miqt_string* QFileSystemModel_RootPath(const QFileSystemModel* self) {
}
QDir* QFileSystemModel_RootDirectory(const QFileSystemModel* self) {
QDir _ret = self->rootDirectory();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDir*>(new QDir(_ret));
return new QDir(self->rootDirectory());
}
void QFileSystemModel_SetIconProvider(QFileSystemModel* self, QFileIconProvider* provider) {
@ -282,7 +264,7 @@ void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array*
struct miqt_array* QFileSystemModel_NameFilters(const QFileSystemModel* self) {
QStringList _ret = self->nameFilters();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -336,16 +318,12 @@ struct miqt_string* QFileSystemModel_Type(const QFileSystemModel* self, QModelIn
}
QDateTime* QFileSystemModel_LastModified(const QFileSystemModel* self, QModelIndex* index) {
QDateTime _ret = self->lastModified(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QDateTime*>(new QDateTime(_ret));
return new QDateTime(self->lastModified(*index));
}
QModelIndex* QFileSystemModel_Mkdir(QFileSystemModel* self, QModelIndex* parent, struct miqt_string* name) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
QModelIndex _ret = self->mkdir(*parent, name_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mkdir(*parent, name_QString));
}
bool QFileSystemModel_Rmdir(QFileSystemModel* self, QModelIndex* index) {
@ -360,9 +338,7 @@ struct miqt_string* QFileSystemModel_FileName(const QFileSystemModel* self, QMod
}
QIcon* QFileSystemModel_FileIcon(const QFileSystemModel* self, QModelIndex* index) {
QIcon _ret = self->fileIcon(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(self->fileIcon(*index));
}
int QFileSystemModel_Permissions(const QFileSystemModel* self, QModelIndex* index) {
@ -371,9 +347,7 @@ int QFileSystemModel_Permissions(const QFileSystemModel* self, QModelIndex* inde
}
QFileInfo* QFileSystemModel_FileInfo(const QFileSystemModel* self, QModelIndex* index) {
QFileInfo _ret = self->fileInfo(*index);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFileInfo*>(new QFileInfo(_ret));
return new QFileInfo(self->fileInfo(*index));
}
bool QFileSystemModel_Remove(QFileSystemModel* self, QModelIndex* index) {
@ -409,16 +383,12 @@ struct miqt_string* QFileSystemModel_TrUtf83(const char* s, const char* c, int n
}
QModelIndex* QFileSystemModel_Index3(const QFileSystemModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
QModelIndex* QFileSystemModel_Index2(const QFileSystemModel* self, struct miqt_string* path, int column) {
QString path_QString = QString::fromUtf8(&path->data, path->len);
QModelIndex _ret = self->index(path_QString, static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(path_QString, static_cast<int>(column)));
}
bool QFileSystemModel_HasChildren1(const QFileSystemModel* self, QModelIndex* parent) {
@ -434,15 +404,11 @@ int QFileSystemModel_ColumnCount1(const QFileSystemModel* self, QModelIndex* par
}
QVariant* QFileSystemModel_MyComputer1(const QFileSystemModel* self, int role) {
QVariant _ret = self->myComputer(static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->myComputer(static_cast<int>(role)));
}
QVariant* QFileSystemModel_Data2(const QFileSystemModel* self, QModelIndex* index, int role) {
QVariant _ret = self->data(*index, static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(*index, static_cast<int>(role)));
}
bool QFileSystemModel_SetData3(QFileSystemModel* self, QModelIndex* index, QVariant* value, int role) {
@ -450,9 +416,7 @@ bool QFileSystemModel_SetData3(QFileSystemModel* self, QModelIndex* index, QVari
}
QVariant* QFileSystemModel_HeaderData3(const QFileSystemModel* self, int section, uintptr_t orientation, int role) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
}
void QFileSystemModel_Sort2(QFileSystemModel* self, int column, uintptr_t order) {

View File

@ -68,7 +68,7 @@ struct miqt_array* QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct
files_QList.push_back(QString::fromUtf8(& files_arr[i]->data, files_arr[i]->len));
}
QStringList _ret = self->addPaths(files_QList);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -95,7 +95,7 @@ struct miqt_array* QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, stru
files_QList.push_back(QString::fromUtf8(& files_arr[i]->data, files_arr[i]->len));
}
QStringList _ret = self->removePaths(files_QList);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -111,7 +111,7 @@ struct miqt_array* QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, stru
struct miqt_array* QFileSystemWatcher_Files(const QFileSystemWatcher* self) {
QStringList _ret = self->files();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -127,7 +127,7 @@ struct miqt_array* QFileSystemWatcher_Files(const QFileSystemWatcher* self) {
struct miqt_array* QFileSystemWatcher_Directories(const QFileSystemWatcher* self) {
QStringList _ret = self->directories();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -62,7 +62,7 @@ void QFont_SetFamily(QFont* self, struct miqt_string* family) {
struct miqt_array* QFont_Families(const QFont* self) {
QStringList _ret = self->families();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -334,7 +334,7 @@ struct miqt_string* QFont_Substitute(struct miqt_string* param1) {
struct miqt_array* QFont_Substitutes(struct miqt_string* param1) {
QString param1_QString = QString::fromUtf8(&param1->data, param1->len);
QStringList _ret = QFont::substitutes(param1_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -350,7 +350,7 @@ struct miqt_array* QFont_Substitutes(struct miqt_string* param1) {
struct miqt_array* QFont_Substitutions() {
QStringList _ret = QFont::substitutions();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -420,9 +420,7 @@ struct miqt_string* QFont_LastResortFont(const QFont* self) {
}
QFont* QFont_Resolve(const QFont* self, QFont* param1) {
QFont _ret = self->resolve(*param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->resolve(*param1));
}
unsigned int QFont_Resolve2(const QFont* self) {

View File

@ -55,15 +55,11 @@ int QFontComboBox_FontFilters(const QFontComboBox* self) {
}
QFont* QFontComboBox_CurrentFont(const QFontComboBox* self) {
QFont _ret = self->currentFont();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->currentFont());
}
QSize* QFontComboBox_SizeHint(const QFontComboBox* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
void QFontComboBox_SetCurrentFont(QFontComboBox* self, QFont* f) {

View File

@ -32,7 +32,8 @@ struct miqt_array* QFontDatabase_WritingSystems(const QFontDatabase* self) {
// Convert QList<> from C++ memory to manually-managed C memory
uintptr_t* _arr = static_cast<uintptr_t*>(malloc(sizeof(uintptr_t) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
QFontDatabase::WritingSystem _lv_ret = _ret[i];
_arr[i] = static_cast<uintptr_t>(_lv_ret);
}
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
_out->len = _ret.length();
@ -46,7 +47,8 @@ struct miqt_array* QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* s
// Convert QList<> from C++ memory to manually-managed C memory
uintptr_t* _arr = static_cast<uintptr_t*>(malloc(sizeof(uintptr_t) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
QFontDatabase::WritingSystem _lv_ret = _ret[i];
_arr[i] = static_cast<uintptr_t>(_lv_ret);
}
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
_out->len = _ret.length();
@ -56,7 +58,7 @@ struct miqt_array* QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* s
struct miqt_array* QFontDatabase_Families(const QFontDatabase* self) {
QStringList _ret = self->families();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -73,7 +75,7 @@ struct miqt_array* QFontDatabase_Families(const QFontDatabase* self) {
struct miqt_array* QFontDatabase_Styles(const QFontDatabase* self, struct miqt_string* family) {
QString family_QString = QString::fromUtf8(&family->data, family->len);
QStringList _ret = self->styles(family_QString);
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -133,9 +135,7 @@ struct miqt_string* QFontDatabase_StyleStringWithFontInfo(QFontDatabase* self, Q
QFont* QFontDatabase_Font(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style, int pointSize) {
QString family_QString = QString::fromUtf8(&family->data, family->len);
QString style_QString = QString::fromUtf8(&style->data, style->len);
QFont _ret = self->font(family_QString, style_QString, static_cast<int>(pointSize));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->font(family_QString, style_QString, static_cast<int>(pointSize)));
}
bool QFontDatabase_IsBitmapScalable(const QFontDatabase* self, struct miqt_string* family) {
@ -211,7 +211,7 @@ int QFontDatabase_AddApplicationFontFromData(QByteArray* fontData) {
struct miqt_array* QFontDatabase_ApplicationFontFamilies(int id) {
QStringList _ret = QFontDatabase::applicationFontFamilies(static_cast<int>(id));
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -238,14 +238,12 @@ bool QFontDatabase_SupportsThreadedFontRendering() {
}
QFont* QFontDatabase_SystemFont(uintptr_t typeVal) {
QFont _ret = QFontDatabase::systemFont(static_cast<QFontDatabase::SystemFont>(typeVal));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDatabase::systemFont(static_cast<QFontDatabase::SystemFont>(typeVal)));
}
struct miqt_array* QFontDatabase_Families1(const QFontDatabase* self, uintptr_t writingSystem) {
QStringList _ret = self->families(static_cast<QFontDatabase::WritingSystem>(writingSystem));
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -48,15 +48,11 @@ void QFontDialog_SetCurrentFont(QFontDialog* self, QFont* font) {
}
QFont* QFontDialog_CurrentFont(const QFontDialog* self) {
QFont _ret = self->currentFont();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->currentFont());
}
QFont* QFontDialog_SelectedFont(const QFontDialog* self) {
QFont _ret = self->selectedFont();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->selectedFont());
}
void QFontDialog_SetOption(QFontDialog* self, uintptr_t option) {
@ -81,15 +77,11 @@ void QFontDialog_SetVisible(QFontDialog* self, bool visible) {
}
QFont* QFontDialog_GetFont(bool* ok) {
QFont _ret = QFontDialog::getFont(ok);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDialog::getFont(ok));
}
QFont* QFontDialog_GetFont2(bool* ok, QFont* initial) {
QFont _ret = QFontDialog::getFont(ok, *initial);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDialog::getFont(ok, *initial));
}
void QFontDialog_CurrentFontChanged(QFontDialog* self, QFont* font) {
@ -151,29 +143,21 @@ void QFontDialog_SetOption2(QFontDialog* self, uintptr_t option, bool on) {
}
QFont* QFontDialog_GetFont22(bool* ok, QWidget* parent) {
QFont _ret = QFontDialog::getFont(ok, parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDialog::getFont(ok, parent));
}
QFont* QFontDialog_GetFont3(bool* ok, QFont* initial, QWidget* parent) {
QFont _ret = QFontDialog::getFont(ok, *initial, parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDialog::getFont(ok, *initial, parent));
}
QFont* QFontDialog_GetFont4(bool* ok, QFont* initial, QWidget* parent, struct miqt_string* title) {
QString title_QString = QString::fromUtf8(&title->data, title->len);
QFont _ret = QFontDialog::getFont(ok, *initial, parent, title_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDialog::getFont(ok, *initial, parent, title_QString));
}
QFont* QFontDialog_GetFont5(bool* ok, QFont* initial, QWidget* parent, struct miqt_string* title, int options) {
QString title_QString = QString::fromUtf8(&title->data, title->len);
QFont _ret = QFontDialog::getFont(ok, *initial, parent, title_QString, static_cast<QFontDialog::FontDialogOptions>(options));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QFontDialog::getFont(ok, *initial, parent, title_QString, static_cast<QFontDialog::FontDialogOptions>(options)));
}
void QFontDialog_Delete(QFontDialog* self) {

View File

@ -123,44 +123,32 @@ int QFontMetrics_CharWidth(const QFontMetrics* self, struct miqt_string* str, in
}
QRect* QFontMetrics_BoundingRect(const QFontMetrics* self, QChar* param1) {
QRect _ret = self->boundingRect(*param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(*param1));
}
QRect* QFontMetrics_BoundingRectWithText(const QFontMetrics* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(text_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(text_QString));
}
QRect* QFontMetrics_BoundingRect2(const QFontMetrics* self, QRect* r, int flags, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(*r, static_cast<int>(flags), text_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(*r, static_cast<int>(flags), text_QString));
}
QRect* QFontMetrics_BoundingRect3(const QFontMetrics* self, int x, int y, int w, int h, int flags, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h), static_cast<int>(flags), text_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h), static_cast<int>(flags), text_QString));
}
QSize* QFontMetrics_Size(const QFontMetrics* self, int flags, struct miqt_string* str) {
QString str_QString = QString::fromUtf8(&str->data, str->len);
QSize _ret = self->size(static_cast<int>(flags), str_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->size(static_cast<int>(flags), str_QString));
}
QRect* QFontMetrics_TightBoundingRect(const QFontMetrics* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->tightBoundingRect(text_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->tightBoundingRect(text_QString));
}
struct miqt_string* QFontMetrics_ElidedText(const QFontMetrics* self, struct miqt_string* text, uintptr_t mode, int width) {
@ -211,44 +199,32 @@ int QFontMetrics_HorizontalAdvance2(const QFontMetrics* self, struct miqt_string
QRect* QFontMetrics_BoundingRect4(const QFontMetrics* self, QRect* r, int flags, struct miqt_string* text, int tabstops) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(*r, static_cast<int>(flags), text_QString, static_cast<int>(tabstops));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(*r, static_cast<int>(flags), text_QString, static_cast<int>(tabstops)));
}
QRect* QFontMetrics_BoundingRect5(const QFontMetrics* self, QRect* r, int flags, struct miqt_string* text, int tabstops, int* tabarray) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(*r, static_cast<int>(flags), text_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(*r, static_cast<int>(flags), text_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray)));
}
QRect* QFontMetrics_BoundingRect7(const QFontMetrics* self, int x, int y, int w, int h, int flags, struct miqt_string* text, int tabstops) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h), static_cast<int>(flags), text_QString, static_cast<int>(tabstops));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h), static_cast<int>(flags), text_QString, static_cast<int>(tabstops)));
}
QRect* QFontMetrics_BoundingRect8(const QFontMetrics* self, int x, int y, int w, int h, int flags, struct miqt_string* text, int tabstops, int* tabarray) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRect _ret = self->boundingRect(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h), static_cast<int>(flags), text_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->boundingRect(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h), static_cast<int>(flags), text_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray)));
}
QSize* QFontMetrics_Size3(const QFontMetrics* self, int flags, struct miqt_string* str, int tabstops) {
QString str_QString = QString::fromUtf8(&str->data, str->len);
QSize _ret = self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops)));
}
QSize* QFontMetrics_Size4(const QFontMetrics* self, int flags, struct miqt_string* str, int tabstops, int* tabarray) {
QString str_QString = QString::fromUtf8(&str->data, str->len);
QSize _ret = self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray)));
}
struct miqt_string* QFontMetrics_ElidedText4(const QFontMetrics* self, struct miqt_string* text, uintptr_t mode, int width, int flags) {
@ -371,36 +347,26 @@ double QFontMetricsF_HorizontalAdvanceWithQChar(const QFontMetricsF* self, QChar
QRectF* QFontMetricsF_BoundingRect(const QFontMetricsF* self, struct miqt_string* stringVal) {
QString stringVal_QString = QString::fromUtf8(&stringVal->data, stringVal->len);
QRectF _ret = self->boundingRect(stringVal_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect(stringVal_QString));
}
QRectF* QFontMetricsF_BoundingRectWithQChar(const QFontMetricsF* self, QChar* param1) {
QRectF _ret = self->boundingRect(*param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect(*param1));
}
QRectF* QFontMetricsF_BoundingRect2(const QFontMetricsF* self, QRectF* r, int flags, struct miqt_string* stringVal) {
QString stringVal_QString = QString::fromUtf8(&stringVal->data, stringVal->len);
QRectF _ret = self->boundingRect(*r, static_cast<int>(flags), stringVal_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect(*r, static_cast<int>(flags), stringVal_QString));
}
QSizeF* QFontMetricsF_Size(const QFontMetricsF* self, int flags, struct miqt_string* str) {
QString str_QString = QString::fromUtf8(&str->data, str->len);
QSizeF _ret = self->size(static_cast<int>(flags), str_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->size(static_cast<int>(flags), str_QString));
}
QRectF* QFontMetricsF_TightBoundingRect(const QFontMetricsF* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
QRectF _ret = self->tightBoundingRect(text_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->tightBoundingRect(text_QString));
}
struct miqt_string* QFontMetricsF_ElidedText(const QFontMetricsF* self, struct miqt_string* text, uintptr_t mode, double width) {
@ -446,30 +412,22 @@ double QFontMetricsF_HorizontalAdvance2(const QFontMetricsF* self, struct miqt_s
QRectF* QFontMetricsF_BoundingRect4(const QFontMetricsF* self, QRectF* r, int flags, struct miqt_string* stringVal, int tabstops) {
QString stringVal_QString = QString::fromUtf8(&stringVal->data, stringVal->len);
QRectF _ret = self->boundingRect(*r, static_cast<int>(flags), stringVal_QString, static_cast<int>(tabstops));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect(*r, static_cast<int>(flags), stringVal_QString, static_cast<int>(tabstops)));
}
QRectF* QFontMetricsF_BoundingRect5(const QFontMetricsF* self, QRectF* r, int flags, struct miqt_string* stringVal, int tabstops, int* tabarray) {
QString stringVal_QString = QString::fromUtf8(&stringVal->data, stringVal->len);
QRectF _ret = self->boundingRect(*r, static_cast<int>(flags), stringVal_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect(*r, static_cast<int>(flags), stringVal_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray)));
}
QSizeF* QFontMetricsF_Size3(const QFontMetricsF* self, int flags, struct miqt_string* str, int tabstops) {
QString str_QString = QString::fromUtf8(&str->data, str->len);
QSizeF _ret = self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops)));
}
QSizeF* QFontMetricsF_Size4(const QFontMetricsF* self, int flags, struct miqt_string* str, int tabstops, int* tabarray) {
QString str_QString = QString::fromUtf8(&str->data, str->len);
QSizeF _ret = self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->size(static_cast<int>(flags), str_QString, static_cast<int>(tabstops), static_cast<int*>(tabarray)));
}
struct miqt_string* QFontMetricsF_ElidedText4(const QFontMetricsF* self, struct miqt_string* text, uintptr_t mode, double width, int flags) {

View File

@ -164,21 +164,15 @@ void QFormLayout_RemoveRowWithLayout(QFormLayout* self, QLayout* layout) {
}
QFormLayout__TakeRowResult* QFormLayout_TakeRow(QFormLayout* self, int row) {
QFormLayout::TakeRowResult _ret = self->takeRow(static_cast<int>(row));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFormLayout::TakeRowResult*>(new QFormLayout::TakeRowResult(_ret));
return new QFormLayout::TakeRowResult(self->takeRow(static_cast<int>(row)));
}
QFormLayout__TakeRowResult* QFormLayout_TakeRowWithWidget(QFormLayout* self, QWidget* widget) {
QFormLayout::TakeRowResult _ret = self->takeRow(widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFormLayout::TakeRowResult*>(new QFormLayout::TakeRowResult(_ret));
return new QFormLayout::TakeRowResult(self->takeRow(widget));
}
QFormLayout__TakeRowResult* QFormLayout_TakeRowWithLayout(QFormLayout* self, QLayout* layout) {
QFormLayout::TakeRowResult _ret = self->takeRow(layout);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFormLayout::TakeRowResult*>(new QFormLayout::TakeRowResult(_ret));
return new QFormLayout::TakeRowResult(self->takeRow(layout));
}
void QFormLayout_SetItem(QFormLayout* self, int row, int role, QLayoutItem* item) {
@ -222,15 +216,11 @@ void QFormLayout_SetGeometry(QFormLayout* self, QRect* rect) {
}
QSize* QFormLayout_MinimumSize(const QFormLayout* self) {
QSize _ret = self->minimumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSize());
}
QSize* QFormLayout_SizeHint(const QFormLayout* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
void QFormLayout_Invalidate(QFormLayout* self) {

View File

@ -53,9 +53,7 @@ int QFrame_FrameWidth(const QFrame* self) {
}
QSize* QFrame_SizeHint(const QFrame* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
uintptr_t QFrame_FrameShape(const QFrame* self) {
@ -93,9 +91,7 @@ void QFrame_SetMidLineWidth(QFrame* self, int midLineWidth) {
}
QRect* QFrame_FrameRect(const QFrame* self) {
QRect _ret = self->frameRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->frameRect());
}
void QFrame_SetFrameRect(QFrame* self, QRect* frameRect) {

View File

@ -10,7 +10,7 @@
struct miqt_array* QGenericPluginFactory_Keys() {
QStringList _ret = QGenericPluginFactory::keys();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];

View File

@ -54,9 +54,7 @@ uintptr_t QGesture_State(const QGesture* self) {
}
QPointF* QGesture_HotSpot(const QGesture* self) {
QPointF _ret = self->hotSpot();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->hotSpot());
}
void QGesture_SetHotSpot(QGesture* self, QPointF* value) {
@ -139,21 +137,15 @@ struct miqt_string* QPanGesture_TrUtf8(const char* s) {
}
QPointF* QPanGesture_LastOffset(const QPanGesture* self) {
QPointF _ret = self->lastOffset();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastOffset());
}
QPointF* QPanGesture_Offset(const QPanGesture* self) {
QPointF _ret = self->offset();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->offset());
}
QPointF* QPanGesture_Delta(const QPanGesture* self) {
QPointF _ret = self->delta();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->delta());
}
double QPanGesture_Acceleration(const QPanGesture* self) {
@ -249,21 +241,15 @@ void QPinchGesture_SetChangeFlags(QPinchGesture* self, int value) {
}
QPointF* QPinchGesture_StartCenterPoint(const QPinchGesture* self) {
QPointF _ret = self->startCenterPoint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->startCenterPoint());
}
QPointF* QPinchGesture_LastCenterPoint(const QPinchGesture* self) {
QPointF _ret = self->lastCenterPoint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastCenterPoint());
}
QPointF* QPinchGesture_CenterPoint(const QPinchGesture* self) {
QPointF _ret = self->centerPoint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->centerPoint());
}
void QPinchGesture_SetStartCenterPoint(QPinchGesture* self, QPointF* value) {
@ -461,9 +447,7 @@ struct miqt_string* QTapGesture_TrUtf8(const char* s) {
}
QPointF* QTapGesture_Position(const QTapGesture* self) {
QPointF _ret = self->position();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->position());
}
void QTapGesture_SetPosition(QTapGesture* self, QPointF* pos) {
@ -529,9 +513,7 @@ struct miqt_string* QTapAndHoldGesture_TrUtf8(const char* s) {
}
QPointF* QTapAndHoldGesture_Position(const QTapAndHoldGesture* self) {
QPointF _ret = self->position();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->position());
}
void QTapAndHoldGesture_SetPosition(QTapAndHoldGesture* self, QPointF* pos) {
@ -676,9 +658,7 @@ QWidget* QGestureEvent_Widget(const QGestureEvent* self) {
}
QPointF* QGestureEvent_MapToGraphicsScene(const QGestureEvent* self, QPointF* gesturePoint) {
QPointF _ret = self->mapToGraphicsScene(*gesturePoint);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToGraphicsScene(*gesturePoint));
}
void QGestureEvent_Delete(QGestureEvent* self) {

View File

@ -24,9 +24,7 @@ void QGlyphRun_Swap(QGlyphRun* self, QGlyphRun* other) {
}
QRawFont* QGlyphRun_RawFont(const QGlyphRun* self) {
QRawFont _ret = self->rawFont();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRawFont*>(new QRawFont(_ret));
return new QRawFont(self->rawFont());
}
void QGlyphRun_SetRawFont(QGlyphRun* self, QRawFont* rawFont) {
@ -62,8 +60,8 @@ void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array* /* of unsigne
struct miqt_array* QGlyphRun_Positions(const QGlyphRun* self) {
QVector<QPointF> _ret = self->positions();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QPointF** _arr = static_cast<QPointF**>(malloc(sizeof(QPointF**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QPointF** _arr = static_cast<QPointF**>(malloc(sizeof(QPointF*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QPointF(_ret[i]);
}
@ -145,9 +143,7 @@ void QGlyphRun_SetBoundingRect(QGlyphRun* self, QRectF* boundingRect) {
}
QRectF* QGlyphRun_BoundingRect(const QGlyphRun* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
bool QGlyphRun_IsEmpty(const QGlyphRun* self) {

View File

@ -35,15 +35,11 @@ struct miqt_string* QGraphicsEffect_TrUtf8(const char* s) {
}
QRectF* QGraphicsEffect_BoundingRectFor(const QGraphicsEffect* self, QRectF* sourceRect) {
QRectF _ret = self->boundingRectFor(*sourceRect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRectFor(*sourceRect));
}
QRectF* QGraphicsEffect_BoundingRect(const QGraphicsEffect* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
bool QGraphicsEffect_IsEnabled(const QGraphicsEffect* self) {
@ -128,9 +124,7 @@ struct miqt_string* QGraphicsColorizeEffect_TrUtf8(const char* s) {
}
QColor* QGraphicsColorizeEffect_Color(const QGraphicsColorizeEffect* self) {
QColor _ret = self->color();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->color());
}
double QGraphicsColorizeEffect_Strength(const QGraphicsColorizeEffect* self) {
@ -228,9 +222,7 @@ struct miqt_string* QGraphicsBlurEffect_TrUtf8(const char* s) {
}
QRectF* QGraphicsBlurEffect_BoundingRectFor(const QGraphicsBlurEffect* self, QRectF* rect) {
QRectF _ret = self->boundingRectFor(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRectFor(*rect));
}
double QGraphicsBlurEffect_BlurRadius(const QGraphicsBlurEffect* self) {
@ -332,15 +324,11 @@ struct miqt_string* QGraphicsDropShadowEffect_TrUtf8(const char* s) {
}
QRectF* QGraphicsDropShadowEffect_BoundingRectFor(const QGraphicsDropShadowEffect* self, QRectF* rect) {
QRectF _ret = self->boundingRectFor(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRectFor(*rect));
}
QPointF* QGraphicsDropShadowEffect_Offset(const QGraphicsDropShadowEffect* self) {
QPointF _ret = self->offset();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->offset());
}
double QGraphicsDropShadowEffect_XOffset(const QGraphicsDropShadowEffect* self) {
@ -356,9 +344,7 @@ double QGraphicsDropShadowEffect_BlurRadius(const QGraphicsDropShadowEffect* sel
}
QColor* QGraphicsDropShadowEffect_Color(const QGraphicsDropShadowEffect* self) {
QColor _ret = self->color();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->color());
}
void QGraphicsDropShadowEffect_SetOffset(QGraphicsDropShadowEffect* self, QPointF* ofs) {
@ -489,9 +475,7 @@ double QGraphicsOpacityEffect_Opacity(const QGraphicsOpacityEffect* self) {
}
QBrush* QGraphicsOpacityEffect_OpacityMask(const QGraphicsOpacityEffect* self) {
QBrush _ret = self->opacityMask();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBrush*>(new QBrush(_ret));
return new QBrush(self->opacityMask());
}
void QGraphicsOpacityEffect_SetOpacity(QGraphicsOpacityEffect* self, double opacity) {

View File

@ -194,9 +194,7 @@ void QGraphicsGridLayout_SetGeometry(QGraphicsGridLayout* self, QRectF* rect) {
}
QSizeF* QGraphicsGridLayout_SizeHint(const QGraphicsGridLayout* self, uintptr_t which) {
QSizeF _ret = self->sizeHint(static_cast<Qt::SizeHint>(which));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->sizeHint(static_cast<Qt::SizeHint>(which)));
}
void QGraphicsGridLayout_AddItem6(QGraphicsGridLayout* self, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, int alignment) {
@ -208,9 +206,7 @@ void QGraphicsGridLayout_AddItem4(QGraphicsGridLayout* self, QGraphicsLayoutItem
}
QSizeF* QGraphicsGridLayout_SizeHint2(const QGraphicsGridLayout* self, uintptr_t which, QSizeF* constraint) {
QSizeF _ret = self->sizeHint(static_cast<Qt::SizeHint>(which), *constraint);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->sizeHint(static_cast<Qt::SizeHint>(which), *constraint));
}
void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self) {

View File

@ -168,9 +168,7 @@ void QGraphicsItem_SetToolTip(QGraphicsItem* self, struct miqt_string* toolTip)
}
QCursor* QGraphicsItem_Cursor(const QGraphicsItem* self) {
QCursor _ret = self->cursor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QCursor*>(new QCursor(_ret));
return new QCursor(self->cursor());
}
void QGraphicsItem_SetCursor(QGraphicsItem* self, QCursor* cursor) {
@ -343,9 +341,7 @@ void QGraphicsItem_UngrabKeyboard(QGraphicsItem* self) {
}
QPointF* QGraphicsItem_Pos(const QGraphicsItem* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
double QGraphicsItem_X(const QGraphicsItem* self) {
@ -365,9 +361,7 @@ void QGraphicsItem_SetY(QGraphicsItem* self, double y) {
}
QPointF* QGraphicsItem_ScenePos(const QGraphicsItem* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsItem_SetPos(QGraphicsItem* self, QPointF* pos) {
@ -391,15 +385,11 @@ void QGraphicsItem_EnsureVisible2(QGraphicsItem* self, double x, double y, doubl
}
QMatrix* QGraphicsItem_Matrix(const QGraphicsItem* self) {
QMatrix _ret = self->matrix();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMatrix*>(new QMatrix(_ret));
return new QMatrix(self->matrix());
}
QMatrix* QGraphicsItem_SceneMatrix(const QGraphicsItem* self) {
QMatrix _ret = self->sceneMatrix();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMatrix*>(new QMatrix(_ret));
return new QMatrix(self->sceneMatrix());
}
void QGraphicsItem_SetMatrix(QGraphicsItem* self, QMatrix* matrix) {
@ -411,27 +401,19 @@ void QGraphicsItem_ResetMatrix(QGraphicsItem* self) {
}
QTransform* QGraphicsItem_Transform(const QGraphicsItem* self) {
QTransform _ret = self->transform();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->transform());
}
QTransform* QGraphicsItem_SceneTransform(const QGraphicsItem* self) {
QTransform _ret = self->sceneTransform();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->sceneTransform());
}
QTransform* QGraphicsItem_DeviceTransform(const QGraphicsItem* self, QTransform* viewportTransform) {
QTransform _ret = self->deviceTransform(*viewportTransform);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->deviceTransform(*viewportTransform));
}
QTransform* QGraphicsItem_ItemTransform(const QGraphicsItem* self, QGraphicsItem* other) {
QTransform _ret = self->itemTransform(other);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->itemTransform(other));
}
void QGraphicsItem_SetTransform(QGraphicsItem* self, QTransform* matrix) {
@ -482,9 +464,7 @@ void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array* /*
}
QPointF* QGraphicsItem_TransformOriginPoint(const QGraphicsItem* self) {
QPointF _ret = self->transformOriginPoint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->transformOriginPoint());
}
void QGraphicsItem_SetTransformOriginPoint(QGraphicsItem* self, QPointF* origin) {
@ -512,27 +492,19 @@ void QGraphicsItem_StackBefore(QGraphicsItem* self, QGraphicsItem* sibling) {
}
QRectF* QGraphicsItem_BoundingRect(const QGraphicsItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QRectF* QGraphicsItem_ChildrenBoundingRect(const QGraphicsItem* self) {
QRectF _ret = self->childrenBoundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->childrenBoundingRect());
}
QRectF* QGraphicsItem_SceneBoundingRect(const QGraphicsItem* self) {
QRectF _ret = self->sceneBoundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->sceneBoundingRect());
}
QPainterPath* QGraphicsItem_Shape(const QGraphicsItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsItem_IsClipped(const QGraphicsItem* self) {
@ -540,9 +512,7 @@ bool QGraphicsItem_IsClipped(const QGraphicsItem* self) {
}
QPainterPath* QGraphicsItem_ClipPath(const QGraphicsItem* self) {
QPainterPath _ret = self->clipPath();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->clipPath());
}
bool QGraphicsItem_Contains(const QGraphicsItem* self, QPointF* point) {
@ -583,15 +553,11 @@ bool QGraphicsItem_IsObscuredBy(const QGraphicsItem* self, QGraphicsItem* item)
}
QPainterPath* QGraphicsItem_OpaqueArea(const QGraphicsItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
QRegion* QGraphicsItem_BoundingRegion(const QGraphicsItem* self, QTransform* itemToDeviceTransform) {
QRegion _ret = self->boundingRegion(*itemToDeviceTransform);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRegion*>(new QRegion(_ret));
return new QRegion(self->boundingRegion(*itemToDeviceTransform));
}
double QGraphicsItem_BoundingRegionGranularity(const QGraphicsItem* self) {
@ -619,183 +585,123 @@ void QGraphicsItem_Scroll(QGraphicsItem* self, double dx, double dy) {
}
QPointF* QGraphicsItem_MapToItem(const QGraphicsItem* self, QGraphicsItem* item, QPointF* point) {
QPointF _ret = self->mapToItem(item, *point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToItem(item, *point));
}
QPointF* QGraphicsItem_MapToParent(const QGraphicsItem* self, QPointF* point) {
QPointF _ret = self->mapToParent(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToParent(*point));
}
QPointF* QGraphicsItem_MapToScene(const QGraphicsItem* self, QPointF* point) {
QPointF _ret = self->mapToScene(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToScene(*point));
}
QRectF* QGraphicsItem_MapRectToItem(const QGraphicsItem* self, QGraphicsItem* item, QRectF* rect) {
QRectF _ret = self->mapRectToItem(item, *rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectToItem(item, *rect));
}
QRectF* QGraphicsItem_MapRectToParent(const QGraphicsItem* self, QRectF* rect) {
QRectF _ret = self->mapRectToParent(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectToParent(*rect));
}
QRectF* QGraphicsItem_MapRectToScene(const QGraphicsItem* self, QRectF* rect) {
QRectF _ret = self->mapRectToScene(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectToScene(*rect));
}
QPainterPath* QGraphicsItem_MapToItem4(const QGraphicsItem* self, QGraphicsItem* item, QPainterPath* path) {
QPainterPath _ret = self->mapToItem(item, *path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapToItem(item, *path));
}
QPainterPath* QGraphicsItem_MapToParentWithPath(const QGraphicsItem* self, QPainterPath* path) {
QPainterPath _ret = self->mapToParent(*path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapToParent(*path));
}
QPainterPath* QGraphicsItem_MapToSceneWithPath(const QGraphicsItem* self, QPainterPath* path) {
QPainterPath _ret = self->mapToScene(*path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapToScene(*path));
}
QPointF* QGraphicsItem_MapFromItem(const QGraphicsItem* self, QGraphicsItem* item, QPointF* point) {
QPointF _ret = self->mapFromItem(item, *point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapFromItem(item, *point));
}
QPointF* QGraphicsItem_MapFromParent(const QGraphicsItem* self, QPointF* point) {
QPointF _ret = self->mapFromParent(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapFromParent(*point));
}
QPointF* QGraphicsItem_MapFromScene(const QGraphicsItem* self, QPointF* point) {
QPointF _ret = self->mapFromScene(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapFromScene(*point));
}
QRectF* QGraphicsItem_MapRectFromItem(const QGraphicsItem* self, QGraphicsItem* item, QRectF* rect) {
QRectF _ret = self->mapRectFromItem(item, *rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectFromItem(item, *rect));
}
QRectF* QGraphicsItem_MapRectFromParent(const QGraphicsItem* self, QRectF* rect) {
QRectF _ret = self->mapRectFromParent(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectFromParent(*rect));
}
QRectF* QGraphicsItem_MapRectFromScene(const QGraphicsItem* self, QRectF* rect) {
QRectF _ret = self->mapRectFromScene(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectFromScene(*rect));
}
QPainterPath* QGraphicsItem_MapFromItem4(const QGraphicsItem* self, QGraphicsItem* item, QPainterPath* path) {
QPainterPath _ret = self->mapFromItem(item, *path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapFromItem(item, *path));
}
QPainterPath* QGraphicsItem_MapFromParentWithPath(const QGraphicsItem* self, QPainterPath* path) {
QPainterPath _ret = self->mapFromParent(*path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapFromParent(*path));
}
QPainterPath* QGraphicsItem_MapFromSceneWithPath(const QGraphicsItem* self, QPainterPath* path) {
QPainterPath _ret = self->mapFromScene(*path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapFromScene(*path));
}
QPointF* QGraphicsItem_MapToItem5(const QGraphicsItem* self, QGraphicsItem* item, double x, double y) {
QPointF _ret = self->mapToItem(item, static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToItem(item, static_cast<qreal>(x), static_cast<qreal>(y)));
}
QPointF* QGraphicsItem_MapToParent2(const QGraphicsItem* self, double x, double y) {
QPointF _ret = self->mapToParent(static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToParent(static_cast<qreal>(x), static_cast<qreal>(y)));
}
QPointF* QGraphicsItem_MapToScene2(const QGraphicsItem* self, double x, double y) {
QPointF _ret = self->mapToScene(static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToScene(static_cast<qreal>(x), static_cast<qreal>(y)));
}
QRectF* QGraphicsItem_MapRectToItem2(const QGraphicsItem* self, QGraphicsItem* item, double x, double y, double w, double h) {
QRectF _ret = self->mapRectToItem(item, static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectToItem(item, static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h)));
}
QRectF* QGraphicsItem_MapRectToParent2(const QGraphicsItem* self, double x, double y, double w, double h) {
QRectF _ret = self->mapRectToParent(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectToParent(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h)));
}
QRectF* QGraphicsItem_MapRectToScene2(const QGraphicsItem* self, double x, double y, double w, double h) {
QRectF _ret = self->mapRectToScene(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectToScene(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h)));
}
QPointF* QGraphicsItem_MapFromItem5(const QGraphicsItem* self, QGraphicsItem* item, double x, double y) {
QPointF _ret = self->mapFromItem(item, static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapFromItem(item, static_cast<qreal>(x), static_cast<qreal>(y)));
}
QPointF* QGraphicsItem_MapFromParent2(const QGraphicsItem* self, double x, double y) {
QPointF _ret = self->mapFromParent(static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapFromParent(static_cast<qreal>(x), static_cast<qreal>(y)));
}
QPointF* QGraphicsItem_MapFromScene2(const QGraphicsItem* self, double x, double y) {
QPointF _ret = self->mapFromScene(static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapFromScene(static_cast<qreal>(x), static_cast<qreal>(y)));
}
QRectF* QGraphicsItem_MapRectFromItem2(const QGraphicsItem* self, QGraphicsItem* item, double x, double y, double w, double h) {
QRectF _ret = self->mapRectFromItem(item, static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectFromItem(item, static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h)));
}
QRectF* QGraphicsItem_MapRectFromParent2(const QGraphicsItem* self, double x, double y, double w, double h) {
QRectF _ret = self->mapRectFromParent(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectFromParent(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h)));
}
QRectF* QGraphicsItem_MapRectFromScene2(const QGraphicsItem* self, double x, double y, double w, double h) {
QRectF _ret = self->mapRectFromScene(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->mapRectFromScene(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(w), static_cast<qreal>(h)));
}
bool QGraphicsItem_IsAncestorOf(const QGraphicsItem* self, QGraphicsItem* child) {
@ -811,9 +717,7 @@ bool QGraphicsItem_IsUnderMouse(const QGraphicsItem* self) {
}
QVariant* QGraphicsItem_Data(const QGraphicsItem* self, int key) {
QVariant _ret = self->data(static_cast<int>(key));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->data(static_cast<int>(key)));
}
void QGraphicsItem_SetData(QGraphicsItem* self, int key, QVariant* value) {
@ -878,9 +782,7 @@ void QGraphicsItem_SetMatrix2(QGraphicsItem* self, QMatrix* matrix, bool combine
}
QTransform* QGraphicsItem_ItemTransform2(const QGraphicsItem* self, QGraphicsItem* other, bool* ok) {
QTransform _ret = self->itemTransform(other, ok);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->itemTransform(other, ok));
}
void QGraphicsItem_SetTransform2(QGraphicsItem* self, QTransform* matrix, bool combine) {
@ -1111,9 +1013,7 @@ void QGraphicsObject_Delete(QGraphicsObject* self) {
}
QPen* QAbstractGraphicsShapeItem_Pen(const QAbstractGraphicsShapeItem* self) {
QPen _ret = self->pen();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPen*>(new QPen(_ret));
return new QPen(self->pen());
}
void QAbstractGraphicsShapeItem_SetPen(QAbstractGraphicsShapeItem* self, QPen* pen) {
@ -1121,9 +1021,7 @@ void QAbstractGraphicsShapeItem_SetPen(QAbstractGraphicsShapeItem* self, QPen* p
}
QBrush* QAbstractGraphicsShapeItem_Brush(const QAbstractGraphicsShapeItem* self) {
QBrush _ret = self->brush();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBrush*>(new QBrush(_ret));
return new QBrush(self->brush());
}
void QAbstractGraphicsShapeItem_SetBrush(QAbstractGraphicsShapeItem* self, QBrush* brush) {
@ -1135,9 +1033,7 @@ bool QAbstractGraphicsShapeItem_IsObscuredBy(const QAbstractGraphicsShapeItem* s
}
QPainterPath* QAbstractGraphicsShapeItem_OpaqueArea(const QAbstractGraphicsShapeItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self) {
@ -1161,9 +1057,7 @@ QGraphicsPathItem* QGraphicsPathItem_new4(QPainterPath* path, QGraphicsItem* par
}
QPainterPath* QGraphicsPathItem_Path(const QGraphicsPathItem* self) {
QPainterPath _ret = self->path();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->path());
}
void QGraphicsPathItem_SetPath(QGraphicsPathItem* self, QPainterPath* path) {
@ -1171,15 +1065,11 @@ void QGraphicsPathItem_SetPath(QGraphicsPathItem* self, QPainterPath* path) {
}
QRectF* QGraphicsPathItem_BoundingRect(const QGraphicsPathItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsPathItem_Shape(const QGraphicsPathItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsPathItem_Contains(const QGraphicsPathItem* self, QPointF* point) {
@ -1195,9 +1085,7 @@ bool QGraphicsPathItem_IsObscuredBy(const QGraphicsPathItem* self, QGraphicsItem
}
QPainterPath* QGraphicsPathItem_OpaqueArea(const QGraphicsPathItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsPathItem_Type(const QGraphicsPathItem* self) {
@ -1237,9 +1125,7 @@ QGraphicsRectItem* QGraphicsRectItem_new6(double x, double y, double w, double h
}
QRectF* QGraphicsRectItem_Rect(const QGraphicsRectItem* self) {
QRectF _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->rect());
}
void QGraphicsRectItem_SetRect(QGraphicsRectItem* self, QRectF* rect) {
@ -1251,15 +1137,11 @@ void QGraphicsRectItem_SetRect2(QGraphicsRectItem* self, double x, double y, dou
}
QRectF* QGraphicsRectItem_BoundingRect(const QGraphicsRectItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsRectItem_Shape(const QGraphicsRectItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsRectItem_Contains(const QGraphicsRectItem* self, QPointF* point) {
@ -1275,9 +1157,7 @@ bool QGraphicsRectItem_IsObscuredBy(const QGraphicsRectItem* self, QGraphicsItem
}
QPainterPath* QGraphicsRectItem_OpaqueArea(const QGraphicsRectItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsRectItem_Type(const QGraphicsRectItem* self) {
@ -1317,9 +1197,7 @@ QGraphicsEllipseItem* QGraphicsEllipseItem_new6(double x, double y, double w, do
}
QRectF* QGraphicsEllipseItem_Rect(const QGraphicsEllipseItem* self) {
QRectF _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->rect());
}
void QGraphicsEllipseItem_SetRect(QGraphicsEllipseItem* self, QRectF* rect) {
@ -1347,15 +1225,11 @@ void QGraphicsEllipseItem_SetSpanAngle(QGraphicsEllipseItem* self, int angle) {
}
QRectF* QGraphicsEllipseItem_BoundingRect(const QGraphicsEllipseItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsEllipseItem_Shape(const QGraphicsEllipseItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsEllipseItem_Contains(const QGraphicsEllipseItem* self, QPointF* point) {
@ -1371,9 +1245,7 @@ bool QGraphicsEllipseItem_IsObscuredBy(const QGraphicsEllipseItem* self, QGraphi
}
QPainterPath* QGraphicsEllipseItem_OpaqueArea(const QGraphicsEllipseItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsEllipseItem_Type(const QGraphicsEllipseItem* self) {
@ -1406,15 +1278,11 @@ void QGraphicsPolygonItem_SetFillRule(QGraphicsPolygonItem* self, uintptr_t rule
}
QRectF* QGraphicsPolygonItem_BoundingRect(const QGraphicsPolygonItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsPolygonItem_Shape(const QGraphicsPolygonItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsPolygonItem_Contains(const QGraphicsPolygonItem* self, QPointF* point) {
@ -1430,9 +1298,7 @@ bool QGraphicsPolygonItem_IsObscuredBy(const QGraphicsPolygonItem* self, QGraphi
}
QPainterPath* QGraphicsPolygonItem_OpaqueArea(const QGraphicsPolygonItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsPolygonItem_Type(const QGraphicsPolygonItem* self) {
@ -1472,9 +1338,7 @@ QGraphicsLineItem* QGraphicsLineItem_new6(double x1, double y1, double x2, doubl
}
QPen* QGraphicsLineItem_Pen(const QGraphicsLineItem* self) {
QPen _ret = self->pen();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPen*>(new QPen(_ret));
return new QPen(self->pen());
}
void QGraphicsLineItem_SetPen(QGraphicsLineItem* self, QPen* pen) {
@ -1482,9 +1346,7 @@ void QGraphicsLineItem_SetPen(QGraphicsLineItem* self, QPen* pen) {
}
QLineF* QGraphicsLineItem_Line(const QGraphicsLineItem* self) {
QLineF _ret = self->line();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QLineF*>(new QLineF(_ret));
return new QLineF(self->line());
}
void QGraphicsLineItem_SetLine(QGraphicsLineItem* self, QLineF* line) {
@ -1496,15 +1358,11 @@ void QGraphicsLineItem_SetLine2(QGraphicsLineItem* self, double x1, double y1, d
}
QRectF* QGraphicsLineItem_BoundingRect(const QGraphicsLineItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsLineItem_Shape(const QGraphicsLineItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsLineItem_Contains(const QGraphicsLineItem* self, QPointF* point) {
@ -1520,9 +1378,7 @@ bool QGraphicsLineItem_IsObscuredBy(const QGraphicsLineItem* self, QGraphicsItem
}
QPainterPath* QGraphicsLineItem_OpaqueArea(const QGraphicsLineItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsLineItem_Type(const QGraphicsLineItem* self) {
@ -1554,9 +1410,7 @@ QGraphicsPixmapItem* QGraphicsPixmapItem_new4(QPixmap* pixmap, QGraphicsItem* pa
}
QPixmap* QGraphicsPixmapItem_Pixmap(const QGraphicsPixmapItem* self) {
QPixmap _ret = self->pixmap();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap());
}
void QGraphicsPixmapItem_SetPixmap(QGraphicsPixmapItem* self, QPixmap* pixmap) {
@ -1573,9 +1427,7 @@ void QGraphicsPixmapItem_SetTransformationMode(QGraphicsPixmapItem* self, uintpt
}
QPointF* QGraphicsPixmapItem_Offset(const QGraphicsPixmapItem* self) {
QPointF _ret = self->offset();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->offset());
}
void QGraphicsPixmapItem_SetOffset(QGraphicsPixmapItem* self, QPointF* offset) {
@ -1587,15 +1439,11 @@ void QGraphicsPixmapItem_SetOffset2(QGraphicsPixmapItem* self, double x, double
}
QRectF* QGraphicsPixmapItem_BoundingRect(const QGraphicsPixmapItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsPixmapItem_Shape(const QGraphicsPixmapItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsPixmapItem_Contains(const QGraphicsPixmapItem* self, QPointF* point) {
@ -1611,9 +1459,7 @@ bool QGraphicsPixmapItem_IsObscuredBy(const QGraphicsPixmapItem* self, QGraphics
}
QPainterPath* QGraphicsPixmapItem_OpaqueArea(const QGraphicsPixmapItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsPixmapItem_Type(const QGraphicsPixmapItem* self) {
@ -1694,9 +1540,7 @@ void QGraphicsTextItem_SetPlainText(QGraphicsTextItem* self, struct miqt_string*
}
QFont* QGraphicsTextItem_Font(const QGraphicsTextItem* self) {
QFont _ret = self->font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->font());
}
void QGraphicsTextItem_SetFont(QGraphicsTextItem* self, QFont* font) {
@ -1708,21 +1552,15 @@ void QGraphicsTextItem_SetDefaultTextColor(QGraphicsTextItem* self, QColor* c) {
}
QColor* QGraphicsTextItem_DefaultTextColor(const QGraphicsTextItem* self) {
QColor _ret = self->defaultTextColor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->defaultTextColor());
}
QRectF* QGraphicsTextItem_BoundingRect(const QGraphicsTextItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsTextItem_Shape(const QGraphicsTextItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsTextItem_Contains(const QGraphicsTextItem* self, QPointF* point) {
@ -1738,9 +1576,7 @@ bool QGraphicsTextItem_IsObscuredBy(const QGraphicsTextItem* self, QGraphicsItem
}
QPainterPath* QGraphicsTextItem_OpaqueArea(const QGraphicsTextItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsTextItem_Type(const QGraphicsTextItem* self) {
@ -1797,9 +1633,7 @@ void QGraphicsTextItem_SetTextCursor(QGraphicsTextItem* self, QTextCursor* curso
}
QTextCursor* QGraphicsTextItem_TextCursor(const QGraphicsTextItem* self) {
QTextCursor _ret = self->textCursor();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTextCursor*>(new QTextCursor(_ret));
return new QTextCursor(self->textCursor());
}
void QGraphicsTextItem_LinkActivated(QGraphicsTextItem* self, struct miqt_string* param1) {
@ -1899,21 +1733,15 @@ void QGraphicsSimpleTextItem_SetFont(QGraphicsSimpleTextItem* self, QFont* font)
}
QFont* QGraphicsSimpleTextItem_Font(const QGraphicsSimpleTextItem* self) {
QFont _ret = self->font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->font());
}
QRectF* QGraphicsSimpleTextItem_BoundingRect(const QGraphicsSimpleTextItem* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsSimpleTextItem_Shape(const QGraphicsSimpleTextItem* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
bool QGraphicsSimpleTextItem_Contains(const QGraphicsSimpleTextItem* self, QPointF* point) {
@ -1929,9 +1757,7 @@ bool QGraphicsSimpleTextItem_IsObscuredBy(const QGraphicsSimpleTextItem* self, Q
}
QPainterPath* QGraphicsSimpleTextItem_OpaqueArea(const QGraphicsSimpleTextItem* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsSimpleTextItem_Type(const QGraphicsSimpleTextItem* self) {
@ -1959,9 +1785,7 @@ void QGraphicsItemGroup_RemoveFromGroup(QGraphicsItemGroup* self, QGraphicsItem*
}
QRectF* QGraphicsItemGroup_BoundingRect(const QGraphicsItemGroup* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
void QGraphicsItemGroup_Paint(QGraphicsItemGroup* self, QPainter* painter, QStyleOptionGraphicsItem* option) {
@ -1973,9 +1797,7 @@ bool QGraphicsItemGroup_IsObscuredBy(const QGraphicsItemGroup* self, QGraphicsIt
}
QPainterPath* QGraphicsItemGroup_OpaqueArea(const QGraphicsItemGroup* self) {
QPainterPath _ret = self->opaqueArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->opaqueArea());
}
int QGraphicsItemGroup_Type(const QGraphicsItemGroup* self) {

View File

@ -56,9 +56,7 @@ void QGraphicsItemAnimation_SetTimeLine(QGraphicsItemAnimation* self, QTimeLine*
}
QPointF* QGraphicsItemAnimation_PosAt(const QGraphicsItemAnimation* self, double step) {
QPointF _ret = self->posAt(static_cast<qreal>(step));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->posAt(static_cast<qreal>(step)));
}
void QGraphicsItemAnimation_SetPosAt(QGraphicsItemAnimation* self, double step, QPointF* pos) {
@ -66,15 +64,11 @@ void QGraphicsItemAnimation_SetPosAt(QGraphicsItemAnimation* self, double step,
}
QMatrix* QGraphicsItemAnimation_MatrixAt(const QGraphicsItemAnimation* self, double step) {
QMatrix _ret = self->matrixAt(static_cast<qreal>(step));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMatrix*>(new QMatrix(_ret));
return new QMatrix(self->matrixAt(static_cast<qreal>(step)));
}
QTransform* QGraphicsItemAnimation_TransformAt(const QGraphicsItemAnimation* self, double step) {
QTransform _ret = self->transformAt(static_cast<qreal>(step));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->transformAt(static_cast<qreal>(step)));
}
double QGraphicsItemAnimation_RotationAt(const QGraphicsItemAnimation* self, double step) {

View File

@ -16,9 +16,7 @@ void QGraphicsLayoutItem_SetSizePolicy2(QGraphicsLayoutItem* self, uintptr_t hPo
}
QSizePolicy* QGraphicsLayoutItem_SizePolicy(const QGraphicsLayoutItem* self) {
QSizePolicy _ret = self->sizePolicy();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizePolicy*>(new QSizePolicy(_ret));
return new QSizePolicy(self->sizePolicy());
}
void QGraphicsLayoutItem_SetMinimumSize(QGraphicsLayoutItem* self, QSizeF* size) {
@ -30,9 +28,7 @@ void QGraphicsLayoutItem_SetMinimumSize2(QGraphicsLayoutItem* self, double w, do
}
QSizeF* QGraphicsLayoutItem_MinimumSize(const QGraphicsLayoutItem* self) {
QSizeF _ret = self->minimumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->minimumSize());
}
void QGraphicsLayoutItem_SetMinimumWidth(QGraphicsLayoutItem* self, double width) {
@ -60,9 +56,7 @@ void QGraphicsLayoutItem_SetPreferredSize2(QGraphicsLayoutItem* self, double w,
}
QSizeF* QGraphicsLayoutItem_PreferredSize(const QGraphicsLayoutItem* self) {
QSizeF _ret = self->preferredSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->preferredSize());
}
void QGraphicsLayoutItem_SetPreferredWidth(QGraphicsLayoutItem* self, double width) {
@ -90,9 +84,7 @@ void QGraphicsLayoutItem_SetMaximumSize2(QGraphicsLayoutItem* self, double w, do
}
QSizeF* QGraphicsLayoutItem_MaximumSize(const QGraphicsLayoutItem* self) {
QSizeF _ret = self->maximumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->maximumSize());
}
void QGraphicsLayoutItem_SetMaximumWidth(QGraphicsLayoutItem* self, double width) {
@ -116,9 +108,7 @@ void QGraphicsLayoutItem_SetGeometry(QGraphicsLayoutItem* self, QRectF* rect) {
}
QRectF* QGraphicsLayoutItem_Geometry(const QGraphicsLayoutItem* self) {
QRectF _ret = self->geometry();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->geometry());
}
void QGraphicsLayoutItem_GetContentsMargins(const QGraphicsLayoutItem* self, double* left, double* top, double* right, double* bottom) {
@ -126,15 +116,11 @@ void QGraphicsLayoutItem_GetContentsMargins(const QGraphicsLayoutItem* self, dou
}
QRectF* QGraphicsLayoutItem_ContentsRect(const QGraphicsLayoutItem* self) {
QRectF _ret = self->contentsRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->contentsRect());
}
QSizeF* QGraphicsLayoutItem_EffectiveSizeHint(const QGraphicsLayoutItem* self, uintptr_t which) {
QSizeF _ret = self->effectiveSizeHint(static_cast<Qt::SizeHint>(which));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->effectiveSizeHint(static_cast<Qt::SizeHint>(which)));
}
void QGraphicsLayoutItem_UpdateGeometry(QGraphicsLayoutItem* self) {
@ -166,9 +152,7 @@ void QGraphicsLayoutItem_SetSizePolicy3(QGraphicsLayoutItem* self, uintptr_t hPo
}
QSizeF* QGraphicsLayoutItem_EffectiveSizeHint2(const QGraphicsLayoutItem* self, uintptr_t which, QSizeF* constraint) {
QSizeF _ret = self->effectiveSizeHint(static_cast<Qt::SizeHint>(which), *constraint);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->effectiveSizeHint(static_cast<Qt::SizeHint>(which), *constraint));
}
void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self) {

View File

@ -105,9 +105,7 @@ void QGraphicsLinearLayout_Invalidate(QGraphicsLinearLayout* self) {
}
QSizeF* QGraphicsLinearLayout_SizeHint(const QGraphicsLinearLayout* self, uintptr_t which) {
QSizeF _ret = self->sizeHint(static_cast<Qt::SizeHint>(which));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->sizeHint(static_cast<Qt::SizeHint>(which)));
}
void QGraphicsLinearLayout_Dump(const QGraphicsLinearLayout* self) {
@ -123,9 +121,7 @@ void QGraphicsLinearLayout_InsertStretch2(QGraphicsLinearLayout* self, int index
}
QSizeF* QGraphicsLinearLayout_SizeHint2(const QGraphicsLinearLayout* self, uintptr_t which, QSizeF* constraint) {
QSizeF _ret = self->sizeHint(static_cast<Qt::SizeHint>(which), *constraint);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->sizeHint(static_cast<Qt::SizeHint>(which), *constraint));
}
void QGraphicsLinearLayout_Dump1(const QGraphicsLinearLayout* self, int indent) {

View File

@ -51,9 +51,7 @@ QWidget* QGraphicsProxyWidget_Widget(const QGraphicsProxyWidget* self) {
}
QRectF* QGraphicsProxyWidget_SubWidgetRect(const QGraphicsProxyWidget* self, QWidget* widget) {
QRectF _ret = self->subWidgetRect(widget);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->subWidgetRect(widget));
}
void QGraphicsProxyWidget_SetGeometry(QGraphicsProxyWidget* self, QRectF* rect) {

View File

@ -79,9 +79,7 @@ struct miqt_string* QGraphicsScene_TrUtf8(const char* s) {
}
QRectF* QGraphicsScene_SceneRect(const QGraphicsScene* self) {
QRectF _ret = self->sceneRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->sceneRect());
}
double QGraphicsScene_Width(const QGraphicsScene* self) {
@ -130,9 +128,7 @@ void QGraphicsScene_SetBspTreeDepth(QGraphicsScene* self, int depth) {
}
QRectF* QGraphicsScene_ItemsBoundingRect(const QGraphicsScene* self) {
QRectF _ret = self->itemsBoundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->itemsBoundingRect());
}
struct miqt_array* QGraphicsScene_Items(const QGraphicsScene* self) {
@ -235,9 +231,7 @@ struct miqt_array* QGraphicsScene_SelectedItems(const QGraphicsScene* self) {
}
QPainterPath* QGraphicsScene_SelectionArea(const QGraphicsScene* self) {
QPainterPath _ret = self->selectionArea();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->selectionArea());
}
void QGraphicsScene_SetSelectionArea(QGraphicsScene* self, QPainterPath* path, QTransform* deviceTransform) {
@ -353,9 +347,7 @@ QGraphicsItem* QGraphicsScene_MouseGrabberItem(const QGraphicsScene* self) {
}
QBrush* QGraphicsScene_BackgroundBrush(const QGraphicsScene* self) {
QBrush _ret = self->backgroundBrush();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBrush*>(new QBrush(_ret));
return new QBrush(self->backgroundBrush());
}
void QGraphicsScene_SetBackgroundBrush(QGraphicsScene* self, QBrush* brush) {
@ -363,9 +355,7 @@ void QGraphicsScene_SetBackgroundBrush(QGraphicsScene* self, QBrush* brush) {
}
QBrush* QGraphicsScene_ForegroundBrush(const QGraphicsScene* self) {
QBrush _ret = self->foregroundBrush();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBrush*>(new QBrush(_ret));
return new QBrush(self->foregroundBrush());
}
void QGraphicsScene_SetForegroundBrush(QGraphicsScene* self, QBrush* brush) {
@ -373,9 +363,7 @@ void QGraphicsScene_SetForegroundBrush(QGraphicsScene* self, QBrush* brush) {
}
QVariant* QGraphicsScene_InputMethodQuery(const QGraphicsScene* self, uintptr_t query) {
QVariant _ret = self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
struct miqt_array* QGraphicsScene_Views(const QGraphicsScene* self) {
@ -408,9 +396,7 @@ void QGraphicsScene_SetStyle(QGraphicsScene* self, QStyle* style) {
}
QFont* QGraphicsScene_Font(const QGraphicsScene* self) {
QFont _ret = self->font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->font());
}
void QGraphicsScene_SetFont(QGraphicsScene* self, QFont* font) {
@ -418,9 +404,7 @@ void QGraphicsScene_SetFont(QGraphicsScene* self, QFont* font) {
}
QPalette* QGraphicsScene_Palette(const QGraphicsScene* self) {
QPalette _ret = self->palette();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPalette*>(new QPalette(_ret));
return new QPalette(self->palette());
}
void QGraphicsScene_SetPalette(QGraphicsScene* self, QPalette* palette) {
@ -500,8 +484,8 @@ void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array* /* of QRect
void QGraphicsScene_connect_Changed(QGraphicsScene* self, void* slot) {
QGraphicsScene::connect(self, static_cast<void (QGraphicsScene::*)(const QList<QRectF>&)>(&QGraphicsScene::changed), self, [=](const QList<QRectF>& region) {
const QList<QRectF>& region_ret = region;
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QRectF** region_arr = static_cast<QRectF**>(malloc(sizeof(QRectF**) * region_ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QRectF** region_arr = static_cast<QRectF**>(malloc(sizeof(QRectF*) * region_ret.length()));
for (size_t i = 0, e = region_ret.length(); i < e; ++i) {
region_arr[i] = new QRectF(region_ret[i]);
}

View File

@ -41,9 +41,7 @@ QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new2(uintptr_t typeVal) {
}
QPointF* QGraphicsSceneMouseEvent_Pos(const QGraphicsSceneMouseEvent* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
void QGraphicsSceneMouseEvent_SetPos(QGraphicsSceneMouseEvent* self, QPointF* pos) {
@ -51,9 +49,7 @@ void QGraphicsSceneMouseEvent_SetPos(QGraphicsSceneMouseEvent* self, QPointF* po
}
QPointF* QGraphicsSceneMouseEvent_ScenePos(const QGraphicsSceneMouseEvent* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsSceneMouseEvent_SetScenePos(QGraphicsSceneMouseEvent* self, QPointF* pos) {
@ -61,9 +57,7 @@ void QGraphicsSceneMouseEvent_SetScenePos(QGraphicsSceneMouseEvent* self, QPoint
}
QPoint* QGraphicsSceneMouseEvent_ScreenPos(const QGraphicsSceneMouseEvent* self) {
QPoint _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->screenPos());
}
void QGraphicsSceneMouseEvent_SetScreenPos(QGraphicsSceneMouseEvent* self, QPoint* pos) {
@ -71,9 +65,7 @@ void QGraphicsSceneMouseEvent_SetScreenPos(QGraphicsSceneMouseEvent* self, QPoin
}
QPointF* QGraphicsSceneMouseEvent_ButtonDownPos(const QGraphicsSceneMouseEvent* self, uintptr_t button) {
QPointF _ret = self->buttonDownPos(static_cast<Qt::MouseButton>(button));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->buttonDownPos(static_cast<Qt::MouseButton>(button)));
}
void QGraphicsSceneMouseEvent_SetButtonDownPos(QGraphicsSceneMouseEvent* self, uintptr_t button, QPointF* pos) {
@ -81,9 +73,7 @@ void QGraphicsSceneMouseEvent_SetButtonDownPos(QGraphicsSceneMouseEvent* self, u
}
QPointF* QGraphicsSceneMouseEvent_ButtonDownScenePos(const QGraphicsSceneMouseEvent* self, uintptr_t button) {
QPointF _ret = self->buttonDownScenePos(static_cast<Qt::MouseButton>(button));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->buttonDownScenePos(static_cast<Qt::MouseButton>(button)));
}
void QGraphicsSceneMouseEvent_SetButtonDownScenePos(QGraphicsSceneMouseEvent* self, uintptr_t button, QPointF* pos) {
@ -91,9 +81,7 @@ void QGraphicsSceneMouseEvent_SetButtonDownScenePos(QGraphicsSceneMouseEvent* se
}
QPoint* QGraphicsSceneMouseEvent_ButtonDownScreenPos(const QGraphicsSceneMouseEvent* self, uintptr_t button) {
QPoint _ret = self->buttonDownScreenPos(static_cast<Qt::MouseButton>(button));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->buttonDownScreenPos(static_cast<Qt::MouseButton>(button)));
}
void QGraphicsSceneMouseEvent_SetButtonDownScreenPos(QGraphicsSceneMouseEvent* self, uintptr_t button, QPoint* pos) {
@ -101,9 +89,7 @@ void QGraphicsSceneMouseEvent_SetButtonDownScreenPos(QGraphicsSceneMouseEvent* s
}
QPointF* QGraphicsSceneMouseEvent_LastPos(const QGraphicsSceneMouseEvent* self) {
QPointF _ret = self->lastPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastPos());
}
void QGraphicsSceneMouseEvent_SetLastPos(QGraphicsSceneMouseEvent* self, QPointF* pos) {
@ -111,9 +97,7 @@ void QGraphicsSceneMouseEvent_SetLastPos(QGraphicsSceneMouseEvent* self, QPointF
}
QPointF* QGraphicsSceneMouseEvent_LastScenePos(const QGraphicsSceneMouseEvent* self) {
QPointF _ret = self->lastScenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastScenePos());
}
void QGraphicsSceneMouseEvent_SetLastScenePos(QGraphicsSceneMouseEvent* self, QPointF* pos) {
@ -121,9 +105,7 @@ void QGraphicsSceneMouseEvent_SetLastScenePos(QGraphicsSceneMouseEvent* self, QP
}
QPoint* QGraphicsSceneMouseEvent_LastScreenPos(const QGraphicsSceneMouseEvent* self) {
QPoint _ret = self->lastScreenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->lastScreenPos());
}
void QGraphicsSceneMouseEvent_SetLastScreenPos(QGraphicsSceneMouseEvent* self, QPoint* pos) {
@ -188,9 +170,7 @@ QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new2(uintptr_t typeVal) {
}
QPointF* QGraphicsSceneWheelEvent_Pos(const QGraphicsSceneWheelEvent* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
void QGraphicsSceneWheelEvent_SetPos(QGraphicsSceneWheelEvent* self, QPointF* pos) {
@ -198,9 +178,7 @@ void QGraphicsSceneWheelEvent_SetPos(QGraphicsSceneWheelEvent* self, QPointF* po
}
QPointF* QGraphicsSceneWheelEvent_ScenePos(const QGraphicsSceneWheelEvent* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsSceneWheelEvent_SetScenePos(QGraphicsSceneWheelEvent* self, QPointF* pos) {
@ -208,9 +186,7 @@ void QGraphicsSceneWheelEvent_SetScenePos(QGraphicsSceneWheelEvent* self, QPoint
}
QPoint* QGraphicsSceneWheelEvent_ScreenPos(const QGraphicsSceneWheelEvent* self) {
QPoint _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->screenPos());
}
void QGraphicsSceneWheelEvent_SetScreenPos(QGraphicsSceneWheelEvent* self, QPoint* pos) {
@ -265,9 +241,7 @@ QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new2(uintptr_t ty
}
QPointF* QGraphicsSceneContextMenuEvent_Pos(const QGraphicsSceneContextMenuEvent* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
void QGraphicsSceneContextMenuEvent_SetPos(QGraphicsSceneContextMenuEvent* self, QPointF* pos) {
@ -275,9 +249,7 @@ void QGraphicsSceneContextMenuEvent_SetPos(QGraphicsSceneContextMenuEvent* self,
}
QPointF* QGraphicsSceneContextMenuEvent_ScenePos(const QGraphicsSceneContextMenuEvent* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsSceneContextMenuEvent_SetScenePos(QGraphicsSceneContextMenuEvent* self, QPointF* pos) {
@ -285,9 +257,7 @@ void QGraphicsSceneContextMenuEvent_SetScenePos(QGraphicsSceneContextMenuEvent*
}
QPoint* QGraphicsSceneContextMenuEvent_ScreenPos(const QGraphicsSceneContextMenuEvent* self) {
QPoint _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->screenPos());
}
void QGraphicsSceneContextMenuEvent_SetScreenPos(QGraphicsSceneContextMenuEvent* self, QPoint* pos) {
@ -325,9 +295,7 @@ QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new2(uintptr_t typeVal) {
}
QPointF* QGraphicsSceneHoverEvent_Pos(const QGraphicsSceneHoverEvent* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
void QGraphicsSceneHoverEvent_SetPos(QGraphicsSceneHoverEvent* self, QPointF* pos) {
@ -335,9 +303,7 @@ void QGraphicsSceneHoverEvent_SetPos(QGraphicsSceneHoverEvent* self, QPointF* po
}
QPointF* QGraphicsSceneHoverEvent_ScenePos(const QGraphicsSceneHoverEvent* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsSceneHoverEvent_SetScenePos(QGraphicsSceneHoverEvent* self, QPointF* pos) {
@ -345,9 +311,7 @@ void QGraphicsSceneHoverEvent_SetScenePos(QGraphicsSceneHoverEvent* self, QPoint
}
QPoint* QGraphicsSceneHoverEvent_ScreenPos(const QGraphicsSceneHoverEvent* self) {
QPoint _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->screenPos());
}
void QGraphicsSceneHoverEvent_SetScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos) {
@ -355,9 +319,7 @@ void QGraphicsSceneHoverEvent_SetScreenPos(QGraphicsSceneHoverEvent* self, QPoin
}
QPointF* QGraphicsSceneHoverEvent_LastPos(const QGraphicsSceneHoverEvent* self) {
QPointF _ret = self->lastPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastPos());
}
void QGraphicsSceneHoverEvent_SetLastPos(QGraphicsSceneHoverEvent* self, QPointF* pos) {
@ -365,9 +327,7 @@ void QGraphicsSceneHoverEvent_SetLastPos(QGraphicsSceneHoverEvent* self, QPointF
}
QPointF* QGraphicsSceneHoverEvent_LastScenePos(const QGraphicsSceneHoverEvent* self) {
QPointF _ret = self->lastScenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->lastScenePos());
}
void QGraphicsSceneHoverEvent_SetLastScenePos(QGraphicsSceneHoverEvent* self, QPointF* pos) {
@ -375,9 +335,7 @@ void QGraphicsSceneHoverEvent_SetLastScenePos(QGraphicsSceneHoverEvent* self, QP
}
QPoint* QGraphicsSceneHoverEvent_LastScreenPos(const QGraphicsSceneHoverEvent* self) {
QPoint _ret = self->lastScreenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->lastScreenPos());
}
void QGraphicsSceneHoverEvent_SetLastScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos) {
@ -406,9 +364,7 @@ QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new2(uintptr_t typeVal) {
}
QPointF* QGraphicsSceneHelpEvent_ScenePos(const QGraphicsSceneHelpEvent* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsSceneHelpEvent_SetScenePos(QGraphicsSceneHelpEvent* self, QPointF* pos) {
@ -416,9 +372,7 @@ void QGraphicsSceneHelpEvent_SetScenePos(QGraphicsSceneHelpEvent* self, QPointF*
}
QPoint* QGraphicsSceneHelpEvent_ScreenPos(const QGraphicsSceneHelpEvent* self) {
QPoint _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->screenPos());
}
void QGraphicsSceneHelpEvent_SetScreenPos(QGraphicsSceneHelpEvent* self, QPoint* pos) {
@ -438,9 +392,7 @@ QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new2(uintptr_t typeVal)
}
QPointF* QGraphicsSceneDragDropEvent_Pos(const QGraphicsSceneDragDropEvent* self) {
QPointF _ret = self->pos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->pos());
}
void QGraphicsSceneDragDropEvent_SetPos(QGraphicsSceneDragDropEvent* self, QPointF* pos) {
@ -448,9 +400,7 @@ void QGraphicsSceneDragDropEvent_SetPos(QGraphicsSceneDragDropEvent* self, QPoin
}
QPointF* QGraphicsSceneDragDropEvent_ScenePos(const QGraphicsSceneDragDropEvent* self) {
QPointF _ret = self->scenePos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->scenePos());
}
void QGraphicsSceneDragDropEvent_SetScenePos(QGraphicsSceneDragDropEvent* self, QPointF* pos) {
@ -458,9 +408,7 @@ void QGraphicsSceneDragDropEvent_SetScenePos(QGraphicsSceneDragDropEvent* self,
}
QPoint* QGraphicsSceneDragDropEvent_ScreenPos(const QGraphicsSceneDragDropEvent* self) {
QPoint _ret = self->screenPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->screenPos());
}
void QGraphicsSceneDragDropEvent_SetScreenPos(QGraphicsSceneDragDropEvent* self, QPoint* pos) {
@ -541,9 +489,7 @@ QGraphicsSceneResizeEvent* QGraphicsSceneResizeEvent_new() {
}
QSizeF* QGraphicsSceneResizeEvent_OldSize(const QGraphicsSceneResizeEvent* self) {
QSizeF _ret = self->oldSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->oldSize());
}
void QGraphicsSceneResizeEvent_SetOldSize(QGraphicsSceneResizeEvent* self, QSizeF* size) {
@ -551,9 +497,7 @@ void QGraphicsSceneResizeEvent_SetOldSize(QGraphicsSceneResizeEvent* self, QSize
}
QSizeF* QGraphicsSceneResizeEvent_NewSize(const QGraphicsSceneResizeEvent* self) {
QSizeF _ret = self->newSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->newSize());
}
void QGraphicsSceneResizeEvent_SetNewSize(QGraphicsSceneResizeEvent* self, QSizeF* size) {
@ -569,9 +513,7 @@ QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new() {
}
QPointF* QGraphicsSceneMoveEvent_OldPos(const QGraphicsSceneMoveEvent* self) {
QPointF _ret = self->oldPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->oldPos());
}
void QGraphicsSceneMoveEvent_SetOldPos(QGraphicsSceneMoveEvent* self, QPointF* pos) {
@ -579,9 +521,7 @@ void QGraphicsSceneMoveEvent_SetOldPos(QGraphicsSceneMoveEvent* self, QPointF* p
}
QPointF* QGraphicsSceneMoveEvent_NewPos(const QGraphicsSceneMoveEvent* self) {
QPointF _ret = self->newPos();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->newPos());
}
void QGraphicsSceneMoveEvent_SetNewPos(QGraphicsSceneMoveEvent* self, QPointF* pos) {

View File

@ -93,9 +93,7 @@ struct miqt_string* QGraphicsScale_TrUtf8(const char* s) {
}
QVector3D* QGraphicsScale_Origin(const QGraphicsScale* self) {
QVector3D _ret = self->origin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVector3D*>(new QVector3D(_ret));
return new QVector3D(self->origin());
}
void QGraphicsScale_SetOrigin(QGraphicsScale* self, QVector3D* point) {
@ -239,9 +237,7 @@ struct miqt_string* QGraphicsRotation_TrUtf8(const char* s) {
}
QVector3D* QGraphicsRotation_Origin(const QGraphicsRotation* self) {
QVector3D _ret = self->origin();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVector3D*>(new QVector3D(_ret));
return new QVector3D(self->origin());
}
void QGraphicsRotation_SetOrigin(QGraphicsRotation* self, QVector3D* point) {
@ -257,9 +253,7 @@ void QGraphicsRotation_SetAngle(QGraphicsRotation* self, double angle) {
}
QVector3D* QGraphicsRotation_Axis(const QGraphicsRotation* self) {
QVector3D _ret = self->axis();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVector3D*>(new QVector3D(_ret));
return new QVector3D(self->axis());
}
void QGraphicsRotation_SetAxis(QGraphicsRotation* self, QVector3D* axis) {

View File

@ -57,9 +57,7 @@ struct miqt_string* QGraphicsView_TrUtf8(const char* s) {
}
QSize* QGraphicsView_SizeHint(const QGraphicsView* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
int QGraphicsView_RenderHints(const QGraphicsView* self) {
@ -143,9 +141,7 @@ void QGraphicsView_SetRubberBandSelectionMode(QGraphicsView* self, uintptr_t mod
}
QRect* QGraphicsView_RubberBandRect(const QGraphicsView* self) {
QRect _ret = self->rubberBandRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->rubberBandRect());
}
int QGraphicsView_CacheMode(const QGraphicsView* self) {
@ -178,9 +174,7 @@ void QGraphicsView_SetScene(QGraphicsView* self, QGraphicsScene* scene) {
}
QRectF* QGraphicsView_SceneRect(const QGraphicsView* self) {
QRectF _ret = self->sceneRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->sceneRect());
}
void QGraphicsView_SetSceneRect(QGraphicsView* self, QRectF* rect) {
@ -192,9 +186,7 @@ void QGraphicsView_SetSceneRect2(QGraphicsView* self, double x, double y, double
}
QMatrix* QGraphicsView_Matrix(const QGraphicsView* self) {
QMatrix _ret = self->matrix();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMatrix*>(new QMatrix(_ret));
return new QMatrix(self->matrix());
}
void QGraphicsView_SetMatrix(QGraphicsView* self, QMatrix* matrix) {
@ -206,15 +198,11 @@ void QGraphicsView_ResetMatrix(QGraphicsView* self) {
}
QTransform* QGraphicsView_Transform(const QGraphicsView* self) {
QTransform _ret = self->transform();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->transform());
}
QTransform* QGraphicsView_ViewportTransform(const QGraphicsView* self) {
QTransform _ret = self->viewportTransform();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(self->viewportTransform());
}
bool QGraphicsView_IsTransformed(const QGraphicsView* self) {
@ -372,51 +360,35 @@ QGraphicsItem* QGraphicsView_ItemAt2(const QGraphicsView* self, int x, int y) {
}
QPointF* QGraphicsView_MapToScene(const QGraphicsView* self, QPoint* point) {
QPointF _ret = self->mapToScene(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToScene(*point));
}
QPainterPath* QGraphicsView_MapToSceneWithPath(const QGraphicsView* self, QPainterPath* path) {
QPainterPath _ret = self->mapToScene(*path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapToScene(*path));
}
QPoint* QGraphicsView_MapFromScene(const QGraphicsView* self, QPointF* point) {
QPoint _ret = self->mapFromScene(*point);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->mapFromScene(*point));
}
QPainterPath* QGraphicsView_MapFromSceneWithPath(const QGraphicsView* self, QPainterPath* path) {
QPainterPath _ret = self->mapFromScene(*path);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->mapFromScene(*path));
}
QPointF* QGraphicsView_MapToScene2(const QGraphicsView* self, int x, int y) {
QPointF _ret = self->mapToScene(static_cast<int>(x), static_cast<int>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPointF*>(new QPointF(_ret));
return new QPointF(self->mapToScene(static_cast<int>(x), static_cast<int>(y)));
}
QPoint* QGraphicsView_MapFromScene2(const QGraphicsView* self, double x, double y) {
QPoint _ret = self->mapFromScene(static_cast<qreal>(x), static_cast<qreal>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->mapFromScene(static_cast<qreal>(x), static_cast<qreal>(y)));
}
QVariant* QGraphicsView_InputMethodQuery(const QGraphicsView* self, uintptr_t query) {
QVariant _ret = self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
QBrush* QGraphicsView_BackgroundBrush(const QGraphicsView* self) {
QBrush _ret = self->backgroundBrush();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBrush*>(new QBrush(_ret));
return new QBrush(self->backgroundBrush());
}
void QGraphicsView_SetBackgroundBrush(QGraphicsView* self, QBrush* brush) {
@ -424,9 +396,7 @@ void QGraphicsView_SetBackgroundBrush(QGraphicsView* self, QBrush* brush) {
}
QBrush* QGraphicsView_ForegroundBrush(const QGraphicsView* self) {
QBrush _ret = self->foregroundBrush();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QBrush*>(new QBrush(_ret));
return new QBrush(self->foregroundBrush());
}
void QGraphicsView_SetForegroundBrush(QGraphicsView* self, QBrush* brush) {
@ -457,15 +427,9 @@ void QGraphicsView_RubberBandChanged(QGraphicsView* self, QRect* viewportRect, Q
void QGraphicsView_connect_RubberBandChanged(QGraphicsView* self, void* slot) {
QGraphicsView::connect(self, static_cast<void (QGraphicsView::*)(QRect, QPointF, QPointF)>(&QGraphicsView::rubberBandChanged), self, [=](QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint) {
QRect viewportRect_ret = viewportRect;
// Copy-construct value returned type into heap-allocated copy
QRect* sigval1 = static_cast<QRect*>(new QRect(viewportRect_ret));
QPointF fromScenePoint_ret = fromScenePoint;
// Copy-construct value returned type into heap-allocated copy
QPointF* sigval2 = static_cast<QPointF*>(new QPointF(fromScenePoint_ret));
QPointF toScenePoint_ret = toScenePoint;
// Copy-construct value returned type into heap-allocated copy
QPointF* sigval3 = static_cast<QPointF*>(new QPointF(toScenePoint_ret));
QRect* sigval1 = new QRect(viewportRect);
QPointF* sigval2 = new QPointF(fromScenePoint);
QPointF* sigval3 = new QPointF(toScenePoint);
miqt_exec_callback_QGraphicsView_RubberBandChanged(slot, sigval1, sigval2, sigval3);
});
}

View File

@ -86,9 +86,7 @@ void QGraphicsWidget_SetStyle(QGraphicsWidget* self, QStyle* style) {
}
QFont* QGraphicsWidget_Font(const QGraphicsWidget* self) {
QFont _ret = self->font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(self->font());
}
void QGraphicsWidget_SetFont(QGraphicsWidget* self, QFont* font) {
@ -96,9 +94,7 @@ void QGraphicsWidget_SetFont(QGraphicsWidget* self, QFont* font) {
}
QPalette* QGraphicsWidget_Palette(const QGraphicsWidget* self) {
QPalette _ret = self->palette();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPalette*>(new QPalette(_ret));
return new QPalette(self->palette());
}
void QGraphicsWidget_SetPalette(QGraphicsWidget* self, QPalette* palette) {
@ -122,9 +118,7 @@ void QGraphicsWidget_Resize2(QGraphicsWidget* self, double w, double h) {
}
QSizeF* QGraphicsWidget_Size(const QGraphicsWidget* self) {
QSizeF _ret = self->size();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSizeF*>(new QSizeF(_ret));
return new QSizeF(self->size());
}
void QGraphicsWidget_SetGeometry(QGraphicsWidget* self, QRectF* rect) {
@ -136,9 +130,7 @@ void QGraphicsWidget_SetGeometry2(QGraphicsWidget* self, double x, double y, dou
}
QRectF* QGraphicsWidget_Rect(const QGraphicsWidget* self) {
QRectF _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->rect());
}
void QGraphicsWidget_SetContentsMargins(QGraphicsWidget* self, double left, double top, double right, double bottom) {
@ -170,15 +162,11 @@ void QGraphicsWidget_UnsetWindowFrameMargins(QGraphicsWidget* self) {
}
QRectF* QGraphicsWidget_WindowFrameGeometry(const QGraphicsWidget* self) {
QRectF _ret = self->windowFrameGeometry();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->windowFrameGeometry());
}
QRectF* QGraphicsWidget_WindowFrameRect(const QGraphicsWidget* self) {
QRectF _ret = self->windowFrameRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->windowFrameRect());
}
int QGraphicsWidget_WindowFlags(const QGraphicsWidget* self) {
@ -310,15 +298,11 @@ void QGraphicsWidget_PaintWindowFrame(QGraphicsWidget* self, QPainter* painter,
}
QRectF* QGraphicsWidget_BoundingRect(const QGraphicsWidget* self) {
QRectF _ret = self->boundingRect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRectF*>(new QRectF(_ret));
return new QRectF(self->boundingRect());
}
QPainterPath* QGraphicsWidget_Shape(const QGraphicsWidget* self) {
QPainterPath _ret = self->shape();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPainterPath*>(new QPainterPath(_ret));
return new QPainterPath(self->shape());
}
void QGraphicsWidget_GeometryChanged(QGraphicsWidget* self) {

View File

@ -39,21 +39,15 @@ struct miqt_string* QGridLayout_TrUtf8(const char* s) {
}
QSize* QGridLayout_SizeHint(const QGridLayout* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
QSize* QGridLayout_MinimumSize(const QGridLayout* self) {
QSize _ret = self->minimumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSize());
}
QSize* QGridLayout_MaximumSize(const QGridLayout* self) {
QSize _ret = self->maximumSize();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->maximumSize());
}
void QGridLayout_SetHorizontalSpacing(QGridLayout* self, int spacing) {
@ -121,9 +115,7 @@ int QGridLayout_RowCount(const QGridLayout* self) {
}
QRect* QGridLayout_CellRect(const QGridLayout* self, int row, int column) {
QRect _ret = self->cellRect(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->cellRect(static_cast<int>(row), static_cast<int>(column)));
}
bool QGridLayout_HasHeightForWidth(const QGridLayout* self) {

View File

@ -67,9 +67,7 @@ void QGroupBox_SetAlignment(QGroupBox* self, int alignment) {
}
QSize* QGroupBox_MinimumSizeHint(const QGroupBox* self) {
QSize _ret = self->minimumSizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->minimumSizeHint());
}
bool QGroupBox_IsFlat(const QGroupBox* self) {

View File

@ -106,9 +106,7 @@ void QGuiApplication_SetWindowIcon(QIcon* icon) {
}
QIcon* QGuiApplication_WindowIcon() {
QIcon _ret = QGuiApplication::windowIcon();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(QGuiApplication::windowIcon());
}
struct miqt_string* QGuiApplication_PlatformName() {
@ -172,9 +170,7 @@ void QGuiApplication_RestoreOverrideCursor() {
}
QFont* QGuiApplication_Font() {
QFont _ret = QGuiApplication::font();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QFont*>(new QFont(_ret));
return new QFont(QGuiApplication::font());
}
void QGuiApplication_SetFont(QFont* font) {
@ -186,9 +182,7 @@ QClipboard* QGuiApplication_Clipboard() {
}
QPalette* QGuiApplication_Palette() {
QPalette _ret = QGuiApplication::palette();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPalette*>(new QPalette(_ret));
return new QPalette(QGuiApplication::palette());
}
void QGuiApplication_SetPalette(QPalette* pal) {

View File

@ -56,9 +56,7 @@ int QHeaderView_Length(const QHeaderView* self) {
}
QSize* QHeaderView_SizeHint(const QHeaderView* self) {
QSize _ret = self->sizeHint();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->sizeHint());
}
void QHeaderView_SetVisible(QHeaderView* self, bool v) {
@ -289,9 +287,7 @@ bool QHeaderView_SectionsHidden(const QHeaderView* self) {
}
QByteArray* QHeaderView_SaveState(const QHeaderView* self) {
QByteArray _ret = self->saveState();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(_ret));
return new QByteArray(self->saveState());
}
bool QHeaderView_RestoreState(QHeaderView* self, QByteArray* state) {

View File

@ -43,39 +43,27 @@ void QIcon_Swap(QIcon* self, QIcon* other) {
}
QPixmap* QIcon_Pixmap(const QIcon* self, QSize* size) {
QPixmap _ret = self->pixmap(*size);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(*size));
}
QPixmap* QIcon_Pixmap2(const QIcon* self, int w, int h) {
QPixmap _ret = self->pixmap(static_cast<int>(w), static_cast<int>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<int>(w), static_cast<int>(h)));
}
QPixmap* QIcon_PixmapWithExtent(const QIcon* self, int extent) {
QPixmap _ret = self->pixmap(static_cast<int>(extent));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<int>(extent)));
}
QPixmap* QIcon_Pixmap3(const QIcon* self, QWindow* window, QSize* size) {
QPixmap _ret = self->pixmap(window, *size);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(window, *size));
}
QSize* QIcon_ActualSize(const QIcon* self, QSize* size) {
QSize _ret = self->actualSize(*size);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(*size));
}
QSize* QIcon_ActualSize2(const QIcon* self, QWindow* window, QSize* size) {
QSize _ret = self->actualSize(window, *size);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(window, *size));
}
struct miqt_string* QIcon_Name(const QIcon* self) {
@ -120,8 +108,8 @@ void QIcon_AddFile(QIcon* self, struct miqt_string* fileName) {
struct miqt_array* QIcon_AvailableSizes(const QIcon* self) {
QList<QSize> _ret = self->availableSizes();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QSize(_ret[i]);
}
@ -141,16 +129,12 @@ bool QIcon_IsMask(const QIcon* self) {
QIcon* QIcon_FromTheme(struct miqt_string* name) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
QIcon _ret = QIcon::fromTheme(name_QString);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(QIcon::fromTheme(name_QString));
}
QIcon* QIcon_FromTheme2(struct miqt_string* name, QIcon* fallback) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
QIcon _ret = QIcon::fromTheme(name_QString, *fallback);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QIcon*>(new QIcon(_ret));
return new QIcon(QIcon::fromTheme(name_QString, *fallback));
}
bool QIcon_HasThemeIcon(struct miqt_string* name) {
@ -160,7 +144,7 @@ bool QIcon_HasThemeIcon(struct miqt_string* name) {
struct miqt_array* QIcon_ThemeSearchPaths() {
QStringList _ret = QIcon::themeSearchPaths();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -186,7 +170,7 @@ void QIcon_SetThemeSearchPaths(struct miqt_array* /* of struct miqt_string* */ s
struct miqt_array* QIcon_FallbackSearchPaths() {
QStringList _ret = QIcon::fallbackSearchPaths();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -235,75 +219,51 @@ void QIcon_SetFallbackThemeName(struct miqt_string* name) {
}
QPixmap* QIcon_Pixmap22(const QIcon* self, QSize* size, uintptr_t mode) {
QPixmap _ret = self->pixmap(*size, static_cast<QIcon::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(*size, static_cast<QIcon::Mode>(mode)));
}
QPixmap* QIcon_Pixmap32(const QIcon* self, QSize* size, uintptr_t mode, uintptr_t state) {
QPixmap _ret = self->pixmap(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
QPixmap* QIcon_Pixmap33(const QIcon* self, int w, int h, uintptr_t mode) {
QPixmap _ret = self->pixmap(static_cast<int>(w), static_cast<int>(h), static_cast<QIcon::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<int>(w), static_cast<int>(h), static_cast<QIcon::Mode>(mode)));
}
QPixmap* QIcon_Pixmap4(const QIcon* self, int w, int h, uintptr_t mode, uintptr_t state) {
QPixmap _ret = self->pixmap(static_cast<int>(w), static_cast<int>(h), static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<int>(w), static_cast<int>(h), static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
QPixmap* QIcon_Pixmap23(const QIcon* self, int extent, uintptr_t mode) {
QPixmap _ret = self->pixmap(static_cast<int>(extent), static_cast<QIcon::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<int>(extent), static_cast<QIcon::Mode>(mode)));
}
QPixmap* QIcon_Pixmap34(const QIcon* self, int extent, uintptr_t mode, uintptr_t state) {
QPixmap _ret = self->pixmap(static_cast<int>(extent), static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(static_cast<int>(extent), static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
QPixmap* QIcon_Pixmap35(const QIcon* self, QWindow* window, QSize* size, uintptr_t mode) {
QPixmap _ret = self->pixmap(window, *size, static_cast<QIcon::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(window, *size, static_cast<QIcon::Mode>(mode)));
}
QPixmap* QIcon_Pixmap42(const QIcon* self, QWindow* window, QSize* size, uintptr_t mode, uintptr_t state) {
QPixmap _ret = self->pixmap(window, *size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(window, *size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
QSize* QIcon_ActualSize22(const QIcon* self, QSize* size, uintptr_t mode) {
QSize _ret = self->actualSize(*size, static_cast<QIcon::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(*size, static_cast<QIcon::Mode>(mode)));
}
QSize* QIcon_ActualSize3(const QIcon* self, QSize* size, uintptr_t mode, uintptr_t state) {
QSize _ret = self->actualSize(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
QSize* QIcon_ActualSize32(const QIcon* self, QWindow* window, QSize* size, uintptr_t mode) {
QSize _ret = self->actualSize(window, *size, static_cast<QIcon::Mode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(window, *size, static_cast<QIcon::Mode>(mode)));
}
QSize* QIcon_ActualSize4(const QIcon* self, QWindow* window, QSize* size, uintptr_t mode, uintptr_t state) {
QSize _ret = self->actualSize(window, *size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(window, *size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
void QIcon_Paint3(const QIcon* self, QPainter* painter, QRect* rect, int alignment) {
@ -355,8 +315,8 @@ void QIcon_AddFile4(QIcon* self, struct miqt_string* fileName, QSize* size, uint
struct miqt_array* QIcon_AvailableSizes1(const QIcon* self, uintptr_t mode) {
QList<QSize> _ret = self->availableSizes(static_cast<QIcon::Mode>(mode));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QSize(_ret[i]);
}
@ -368,8 +328,8 @@ struct miqt_array* QIcon_AvailableSizes1(const QIcon* self, uintptr_t mode) {
struct miqt_array* QIcon_AvailableSizes2(const QIcon* self, uintptr_t mode, uintptr_t state) {
QList<QSize> _ret = self->availableSizes(static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QSize(_ret[i]);
}

View File

@ -19,15 +19,11 @@ void QIconEngine_Paint(QIconEngine* self, QPainter* painter, QRect* rect, uintpt
}
QSize* QIconEngine_ActualSize(QIconEngine* self, QSize* size, uintptr_t mode, uintptr_t state) {
QSize _ret = self->actualSize(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->actualSize(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
QPixmap* QIconEngine_Pixmap(QIconEngine* self, QSize* size, uintptr_t mode, uintptr_t state) {
QPixmap _ret = self->pixmap(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->pixmap(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state)));
}
void QIconEngine_AddPixmap(QIconEngine* self, QPixmap* pixmap, uintptr_t mode, uintptr_t state) {
@ -60,8 +56,8 @@ bool QIconEngine_Write(const QIconEngine* self, QDataStream* out) {
struct miqt_array* QIconEngine_AvailableSizes(const QIconEngine* self) {
QList<QSize> _ret = self->availableSizes();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QSize(_ret[i]);
}
@ -83,15 +79,13 @@ bool QIconEngine_IsNull(const QIconEngine* self) {
}
QPixmap* QIconEngine_ScaledPixmap(QIconEngine* self, QSize* size, uintptr_t mode, uintptr_t state, double scale) {
QPixmap _ret = self->scaledPixmap(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state), static_cast<qreal>(scale));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixmap*>(new QPixmap(_ret));
return new QPixmap(self->scaledPixmap(*size, static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state), static_cast<qreal>(scale)));
}
struct miqt_array* QIconEngine_AvailableSizes1(const QIconEngine* self, uintptr_t mode) {
QList<QSize> _ret = self->availableSizes(static_cast<QIcon::Mode>(mode));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QSize(_ret[i]);
}
@ -103,8 +97,8 @@ struct miqt_array* QIconEngine_AvailableSizes1(const QIconEngine* self, uintptr_
struct miqt_array* QIconEngine_AvailableSizes2(const QIconEngine* self, uintptr_t mode, uintptr_t state) {
QList<QSize> _ret = self->availableSizes(static_cast<QIcon::Mode>(mode), static_cast<QIcon::State>(state));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QSize** _arr = static_cast<QSize**>(malloc(sizeof(QSize*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QSize(_ret[i]);
}

View File

@ -44,27 +44,19 @@ int QIdentityProxyModel_ColumnCount(const QIdentityProxyModel* self) {
}
QModelIndex* QIdentityProxyModel_Index(const QIdentityProxyModel* self, int row, int column) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column)));
}
QModelIndex* QIdentityProxyModel_MapFromSource(const QIdentityProxyModel* self, QModelIndex* sourceIndex) {
QModelIndex _ret = self->mapFromSource(*sourceIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mapFromSource(*sourceIndex));
}
QModelIndex* QIdentityProxyModel_MapToSource(const QIdentityProxyModel* self, QModelIndex* proxyIndex) {
QModelIndex _ret = self->mapToSource(*proxyIndex);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->mapToSource(*proxyIndex));
}
QModelIndex* QIdentityProxyModel_Parent(const QIdentityProxyModel* self, QModelIndex* child) {
QModelIndex _ret = self->parent(*child);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->parent(*child));
}
int QIdentityProxyModel_RowCount(const QIdentityProxyModel* self) {
@ -72,9 +64,7 @@ int QIdentityProxyModel_RowCount(const QIdentityProxyModel* self) {
}
QVariant* QIdentityProxyModel_HeaderData(const QIdentityProxyModel* self, int section, uintptr_t orientation) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation)));
}
bool QIdentityProxyModel_DropMimeData(QIdentityProxyModel* self, QMimeData* data, uintptr_t action, int row, int column, QModelIndex* parent) {
@ -82,15 +72,13 @@ bool QIdentityProxyModel_DropMimeData(QIdentityProxyModel* self, QMimeData* data
}
QModelIndex* QIdentityProxyModel_Sibling(const QIdentityProxyModel* self, int row, int column, QModelIndex* idx) {
QModelIndex _ret = self->sibling(static_cast<int>(row), static_cast<int>(column), *idx);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->sibling(static_cast<int>(row), static_cast<int>(column), *idx));
}
struct miqt_array* QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value) {
QModelIndexList _ret = self->match(*start, static_cast<int>(role), *value);
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QModelIndex(_ret[i]);
}
@ -161,9 +149,7 @@ int QIdentityProxyModel_ColumnCount1(const QIdentityProxyModel* self, QModelInde
}
QModelIndex* QIdentityProxyModel_Index3(const QIdentityProxyModel* self, int row, int column, QModelIndex* parent) {
QModelIndex _ret = self->index(static_cast<int>(row), static_cast<int>(column), *parent);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QModelIndex*>(new QModelIndex(_ret));
return new QModelIndex(self->index(static_cast<int>(row), static_cast<int>(column), *parent));
}
int QIdentityProxyModel_RowCount1(const QIdentityProxyModel* self, QModelIndex* parent) {
@ -171,15 +157,13 @@ int QIdentityProxyModel_RowCount1(const QIdentityProxyModel* self, QModelIndex*
}
QVariant* QIdentityProxyModel_HeaderData3(const QIdentityProxyModel* self, int section, uintptr_t orientation, int role) {
QVariant _ret = self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(_ret));
return new QVariant(self->headerData(static_cast<int>(section), static_cast<Qt::Orientation>(orientation), static_cast<int>(role)));
}
struct miqt_array* QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) {
QModelIndexList _ret = self->match(*start, static_cast<int>(role), *value, static_cast<int>(hits));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QModelIndex(_ret[i]);
}
@ -191,8 +175,8 @@ struct miqt_array* QIdentityProxyModel_Match4(const QIdentityProxyModel* self, Q
struct miqt_array* QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) {
QModelIndexList _ret = self->match(*start, static_cast<int>(role), *value, static_cast<int>(hits), static_cast<Qt::MatchFlags>(flags));
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex**) * _ret.length()));
// Convert QList<> from C++ memory to manually-managed C memory
QModelIndex** _arr = static_cast<QModelIndex**>(malloc(sizeof(QModelIndex*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QModelIndex(_ret[i]);
}

View File

@ -94,15 +94,11 @@ bool QImage_IsDetached(const QImage* self) {
}
QImage* QImage_Copy(const QImage* self) {
QImage _ret = self->copy();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->copy());
}
QImage* QImage_Copy2(const QImage* self, int x, int y, int w, int h) {
QImage _ret = self->copy(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->copy(static_cast<int>(x), static_cast<int>(y), static_cast<int>(w), static_cast<int>(h)));
}
uintptr_t QImage_Format(const QImage* self) {
@ -111,9 +107,7 @@ uintptr_t QImage_Format(const QImage* self) {
}
QImage* QImage_ConvertToFormat(const QImage* self, uintptr_t f) {
QImage _ret = self->convertToFormat(static_cast<QImage::Format>(f));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->convertToFormat(static_cast<QImage::Format>(f)));
}
QImage* QImage_ConvertToFormat2(const QImage* self, uintptr_t f, struct miqt_array* /* of unsigned int */ colorTable) {
@ -123,9 +117,7 @@ QImage* QImage_ConvertToFormat2(const QImage* self, uintptr_t f, struct miqt_arr
for(size_t i = 0; i < colorTable->len; ++i) {
colorTable_QList.push_back(colorTable_arr[i]);
}
QImage _ret = self->convertToFormat(static_cast<QImage::Format>(f), colorTable_QList);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->convertToFormat(static_cast<QImage::Format>(f), colorTable_QList));
}
bool QImage_ReinterpretAsFormat(QImage* self, uintptr_t f) {
@ -145,15 +137,11 @@ int QImage_Height(const QImage* self) {
}
QSize* QImage_Size(const QImage* self) {
QSize _ret = self->size();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QSize*>(new QSize(_ret));
return new QSize(self->size());
}
QRect* QImage_Rect(const QImage* self) {
QRect _ret = self->rect();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QRect*>(new QRect(_ret));
return new QRect(self->rect());
}
int QImage_Depth(const QImage* self) {
@ -257,15 +245,11 @@ void QImage_SetPixel2(QImage* self, QPoint* pt, unsigned int index_or_rgb) {
}
QColor* QImage_PixelColor(const QImage* self, int x, int y) {
QColor _ret = self->pixelColor(static_cast<int>(x), static_cast<int>(y));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->pixelColor(static_cast<int>(x), static_cast<int>(y)));
}
QColor* QImage_PixelColorWithPt(const QImage* self, QPoint* pt) {
QColor _ret = self->pixelColor(*pt);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColor*>(new QColor(_ret));
return new QColor(self->pixelColor(*pt));
}
void QImage_SetPixelColor(QImage* self, int x, int y, QColor* c) {
@ -328,87 +312,59 @@ void QImage_SetAlphaChannel(QImage* self, QImage* alphaChannel) {
}
QImage* QImage_AlphaChannel(const QImage* self) {
QImage _ret = self->alphaChannel();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->alphaChannel());
}
QImage* QImage_CreateAlphaMask(const QImage* self) {
QImage _ret = self->createAlphaMask();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->createAlphaMask());
}
QImage* QImage_CreateHeuristicMask(const QImage* self) {
QImage _ret = self->createHeuristicMask();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->createHeuristicMask());
}
QImage* QImage_CreateMaskFromColor(const QImage* self, unsigned int color) {
QImage _ret = self->createMaskFromColor(static_cast<QRgb>(color));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->createMaskFromColor(static_cast<QRgb>(color)));
}
QImage* QImage_Scaled(const QImage* self, int w, int h) {
QImage _ret = self->scaled(static_cast<int>(w), static_cast<int>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaled(static_cast<int>(w), static_cast<int>(h)));
}
QImage* QImage_ScaledWithQSize(const QImage* self, QSize* s) {
QImage _ret = self->scaled(*s);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaled(*s));
}
QImage* QImage_ScaledToWidth(const QImage* self, int w) {
QImage _ret = self->scaledToWidth(static_cast<int>(w));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaledToWidth(static_cast<int>(w)));
}
QImage* QImage_ScaledToHeight(const QImage* self, int h) {
QImage _ret = self->scaledToHeight(static_cast<int>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaledToHeight(static_cast<int>(h)));
}
QImage* QImage_Transformed(const QImage* self, QMatrix* matrix) {
QImage _ret = self->transformed(*matrix);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->transformed(*matrix));
}
QMatrix* QImage_TrueMatrix(QMatrix* param1, int w, int h) {
QMatrix _ret = QImage::trueMatrix(*param1, static_cast<int>(w), static_cast<int>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMatrix*>(new QMatrix(_ret));
return new QMatrix(QImage::trueMatrix(*param1, static_cast<int>(w), static_cast<int>(h)));
}
QImage* QImage_TransformedWithMatrix(const QImage* self, QTransform* matrix) {
QImage _ret = self->transformed(*matrix);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->transformed(*matrix));
}
QTransform* QImage_TrueMatrix2(QTransform* param1, int w, int h) {
QTransform _ret = QImage::trueMatrix(*param1, static_cast<int>(w), static_cast<int>(h));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTransform*>(new QTransform(_ret));
return new QTransform(QImage::trueMatrix(*param1, static_cast<int>(w), static_cast<int>(h)));
}
QImage* QImage_Mirrored(const QImage* self) {
QImage _ret = self->mirrored();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->mirrored());
}
QImage* QImage_RgbSwapped(const QImage* self) {
QImage _ret = self->rgbSwapped();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->rgbSwapped());
}
void QImage_InvertPixels(QImage* self) {
@ -416,15 +372,11 @@ void QImage_InvertPixels(QImage* self) {
}
QColorSpace* QImage_ColorSpace(const QImage* self) {
QColorSpace _ret = self->colorSpace();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QColorSpace*>(new QColorSpace(_ret));
return new QColorSpace(self->colorSpace());
}
QImage* QImage_ConvertedToColorSpace(const QImage* self, QColorSpace* param1) {
QImage _ret = self->convertedToColorSpace(*param1);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->convertedToColorSpace(*param1));
}
void QImage_ConvertToColorSpace(QImage* self, QColorSpace* param1) {
@ -466,15 +418,11 @@ bool QImage_SaveWithDevice(const QImage* self, QIODevice* device) {
}
QImage* QImage_FromData(const unsigned char* data, int size) {
QImage _ret = QImage::fromData(static_cast<const uchar*>(data), static_cast<int>(size));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(QImage::fromData(static_cast<const uchar*>(data), static_cast<int>(size)));
}
QImage* QImage_FromDataWithData(QByteArray* data) {
QImage _ret = QImage::fromData(*data);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(QImage::fromData(*data));
}
long long QImage_CacheKey(const QImage* self) {
@ -502,9 +450,7 @@ void QImage_SetDotsPerMeterY(QImage* self, int dotsPerMeterY) {
}
QPoint* QImage_Offset(const QImage* self) {
QPoint _ret = self->offset();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPoint*>(new QPoint(_ret));
return new QPoint(self->offset());
}
void QImage_SetOffset(QImage* self, QPoint* offset) {
@ -513,7 +459,7 @@ void QImage_SetOffset(QImage* self, QPoint* offset) {
struct miqt_array* QImage_TextKeys(const QImage* self) {
QStringList _ret = self->textKeys();
// Convert QStringList from C++ memory to manually-managed C memory
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
@ -541,15 +487,11 @@ void QImage_SetText(QImage* self, struct miqt_string* key, struct miqt_string* v
}
QPixelFormat* QImage_PixelFormat(const QImage* self) {
QPixelFormat _ret = self->pixelFormat();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixelFormat*>(new QPixelFormat(_ret));
return new QPixelFormat(self->pixelFormat());
}
QPixelFormat* QImage_ToPixelFormat(uintptr_t format) {
QPixelFormat _ret = QImage::toPixelFormat(static_cast<QImage::Format>(format));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QPixelFormat*>(new QPixelFormat(_ret));
return new QPixelFormat(QImage::toPixelFormat(static_cast<QImage::Format>(format)));
}
uintptr_t QImage_ToImageFormat(QPixelFormat* format) {
@ -558,15 +500,11 @@ uintptr_t QImage_ToImageFormat(QPixelFormat* format) {
}
QImage* QImage_Copy1(const QImage* self, QRect* rect) {
QImage _ret = self->copy(*rect);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->copy(*rect));
}
QImage* QImage_ConvertToFormat22(const QImage* self, uintptr_t f, int flags) {
QImage _ret = self->convertToFormat(static_cast<QImage::Format>(f), static_cast<Qt::ImageConversionFlags>(flags));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->convertToFormat(static_cast<QImage::Format>(f), static_cast<Qt::ImageConversionFlags>(flags)));
}
QImage* QImage_ConvertToFormat3(const QImage* self, uintptr_t f, struct miqt_array* /* of unsigned int */ colorTable, int flags) {
@ -576,9 +514,7 @@ QImage* QImage_ConvertToFormat3(const QImage* self, uintptr_t f, struct miqt_arr
for(size_t i = 0; i < colorTable->len; ++i) {
colorTable_QList.push_back(colorTable_arr[i]);
}
QImage _ret = self->convertToFormat(static_cast<QImage::Format>(f), colorTable_QList, static_cast<Qt::ImageConversionFlags>(flags));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->convertToFormat(static_cast<QImage::Format>(f), colorTable_QList, static_cast<Qt::ImageConversionFlags>(flags)));
}
void QImage_ConvertTo2(QImage* self, uintptr_t f, int flags) {
@ -586,81 +522,55 @@ void QImage_ConvertTo2(QImage* self, uintptr_t f, int flags) {
}
QImage* QImage_CreateAlphaMask1(const QImage* self, int flags) {
QImage _ret = self->createAlphaMask(static_cast<Qt::ImageConversionFlags>(flags));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->createAlphaMask(static_cast<Qt::ImageConversionFlags>(flags)));
}
QImage* QImage_CreateHeuristicMask1(const QImage* self, bool clipTight) {
QImage _ret = self->createHeuristicMask(clipTight);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->createHeuristicMask(clipTight));
}
QImage* QImage_CreateMaskFromColor2(const QImage* self, unsigned int color, uintptr_t mode) {
QImage _ret = self->createMaskFromColor(static_cast<QRgb>(color), static_cast<Qt::MaskMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->createMaskFromColor(static_cast<QRgb>(color), static_cast<Qt::MaskMode>(mode)));
}
QImage* QImage_Scaled3(const QImage* self, int w, int h, uintptr_t aspectMode) {
QImage _ret = self->scaled(static_cast<int>(w), static_cast<int>(h), static_cast<Qt::AspectRatioMode>(aspectMode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaled(static_cast<int>(w), static_cast<int>(h), static_cast<Qt::AspectRatioMode>(aspectMode)));
}
QImage* QImage_Scaled4(const QImage* self, int w, int h, uintptr_t aspectMode, uintptr_t mode) {
QImage _ret = self->scaled(static_cast<int>(w), static_cast<int>(h), static_cast<Qt::AspectRatioMode>(aspectMode), static_cast<Qt::TransformationMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaled(static_cast<int>(w), static_cast<int>(h), static_cast<Qt::AspectRatioMode>(aspectMode), static_cast<Qt::TransformationMode>(mode)));
}
QImage* QImage_Scaled2(const QImage* self, QSize* s, uintptr_t aspectMode) {
QImage _ret = self->scaled(*s, static_cast<Qt::AspectRatioMode>(aspectMode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaled(*s, static_cast<Qt::AspectRatioMode>(aspectMode)));
}
QImage* QImage_Scaled32(const QImage* self, QSize* s, uintptr_t aspectMode, uintptr_t mode) {
QImage _ret = self->scaled(*s, static_cast<Qt::AspectRatioMode>(aspectMode), static_cast<Qt::TransformationMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaled(*s, static_cast<Qt::AspectRatioMode>(aspectMode), static_cast<Qt::TransformationMode>(mode)));
}
QImage* QImage_ScaledToWidth2(const QImage* self, int w, uintptr_t mode) {
QImage _ret = self->scaledToWidth(static_cast<int>(w), static_cast<Qt::TransformationMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaledToWidth(static_cast<int>(w), static_cast<Qt::TransformationMode>(mode)));
}
QImage* QImage_ScaledToHeight2(const QImage* self, int h, uintptr_t mode) {
QImage _ret = self->scaledToHeight(static_cast<int>(h), static_cast<Qt::TransformationMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->scaledToHeight(static_cast<int>(h), static_cast<Qt::TransformationMode>(mode)));
}
QImage* QImage_Transformed2(const QImage* self, QMatrix* matrix, uintptr_t mode) {
QImage _ret = self->transformed(*matrix, static_cast<Qt::TransformationMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->transformed(*matrix, static_cast<Qt::TransformationMode>(mode)));
}
QImage* QImage_Transformed22(const QImage* self, QTransform* matrix, uintptr_t mode) {
QImage _ret = self->transformed(*matrix, static_cast<Qt::TransformationMode>(mode));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->transformed(*matrix, static_cast<Qt::TransformationMode>(mode)));
}
QImage* QImage_Mirrored1(const QImage* self, bool horizontally) {
QImage _ret = self->mirrored(horizontally);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->mirrored(horizontally));
}
QImage* QImage_Mirrored2(const QImage* self, bool horizontally, bool vertically) {
QImage _ret = self->mirrored(horizontally, vertically);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(self->mirrored(horizontally, vertically));
}
void QImage_InvertPixels1(QImage* self, uintptr_t param1) {
@ -699,15 +609,11 @@ bool QImage_Save32(const QImage* self, QIODevice* device, const char* format, in
}
QImage* QImage_FromData3(const unsigned char* data, int size, const char* format) {
QImage _ret = QImage::fromData(static_cast<const uchar*>(data), static_cast<int>(size), format);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(QImage::fromData(static_cast<const uchar*>(data), static_cast<int>(size), format));
}
QImage* QImage_FromData2(QByteArray* data, const char* format) {
QImage _ret = QImage::fromData(*data, format);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QImage*>(new QImage(_ret));
return new QImage(QImage::fromData(*data, format));
}
struct miqt_string* QImage_Text1(const QImage* self, struct miqt_string* key) {

Some files were not shown because too many files have changed in this diff Show More