#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qmessagebox.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" class MiqtVirtualQMessageBox : public virtual QMessageBox { public: MiqtVirtualQMessageBox(QWidget* parent): QMessageBox(parent) {}; MiqtVirtualQMessageBox(): QMessageBox() {}; MiqtVirtualQMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text): QMessageBox(icon, title, text) {}; MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2): QMessageBox(title, text, icon, button0, button1, button2) {}; MiqtVirtualQMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons): QMessageBox(icon, title, text, buttons) {}; MiqtVirtualQMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QWidget* parent): QMessageBox(icon, title, text, buttons, parent) {}; MiqtVirtualQMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QWidget* parent, Qt::WindowFlags flags): QMessageBox(icon, title, text, buttons, parent, flags) {}; MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget* parent): QMessageBox(title, text, icon, button0, button1, button2, parent) {}; MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget* parent, Qt::WindowFlags f): QMessageBox(title, text, icon, button0, button1, button2, parent, f) {}; virtual ~MiqtVirtualQMessageBox() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; // Subclass to allow providing a Go implementation virtual bool event(QEvent* e) override { if (handle__Event == 0) { return QMessageBox::event(e); } QEvent* sigval1 = e; bool callback_return_value = miqt_exec_callback_QMessageBox_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* e) { return QMessageBox::event(e); } // cgo.Handle value for overwritten implementation intptr_t handle__ResizeEvent = 0; // Subclass to allow providing a Go implementation virtual void resizeEvent(QResizeEvent* event) override { if (handle__ResizeEvent == 0) { QMessageBox::resizeEvent(event); return; } QResizeEvent* sigval1 = event; miqt_exec_callback_QMessageBox_ResizeEvent(this, handle__ResizeEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ResizeEvent(QResizeEvent* event) { QMessageBox::resizeEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ShowEvent = 0; // Subclass to allow providing a Go implementation virtual void showEvent(QShowEvent* event) override { if (handle__ShowEvent == 0) { QMessageBox::showEvent(event); return; } QShowEvent* sigval1 = event; miqt_exec_callback_QMessageBox_ShowEvent(this, handle__ShowEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ShowEvent(QShowEvent* event) { QMessageBox::showEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__CloseEvent = 0; // Subclass to allow providing a Go implementation virtual void closeEvent(QCloseEvent* event) override { if (handle__CloseEvent == 0) { QMessageBox::closeEvent(event); return; } QCloseEvent* sigval1 = event; miqt_exec_callback_QMessageBox_CloseEvent(this, handle__CloseEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CloseEvent(QCloseEvent* event) { QMessageBox::closeEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__KeyPressEvent = 0; // Subclass to allow providing a Go implementation virtual void keyPressEvent(QKeyEvent* event) override { if (handle__KeyPressEvent == 0) { QMessageBox::keyPressEvent(event); return; } QKeyEvent* sigval1 = event; miqt_exec_callback_QMessageBox_KeyPressEvent(this, handle__KeyPressEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_KeyPressEvent(QKeyEvent* event) { QMessageBox::keyPressEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ChangeEvent = 0; // Subclass to allow providing a Go implementation virtual void changeEvent(QEvent* event) override { if (handle__ChangeEvent == 0) { QMessageBox::changeEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QMessageBox_ChangeEvent(this, handle__ChangeEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChangeEvent(QEvent* event) { QMessageBox::changeEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; // Subclass to allow providing a Go implementation virtual void setVisible(bool visible) override { if (handle__SetVisible == 0) { QMessageBox::setVisible(visible); return; } bool sigval1 = visible; miqt_exec_callback_QMessageBox_SetVisible(this, handle__SetVisible, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetVisible(bool visible) { QMessageBox::setVisible(visible); } // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; // Subclass to allow providing a Go implementation virtual QSize sizeHint() const override { if (handle__SizeHint == 0) { return QMessageBox::sizeHint(); } QSize* callback_return_value = miqt_exec_callback_QMessageBox_SizeHint(const_cast(this), handle__SizeHint); return *callback_return_value; } // Wrapper to allow calling protected method QSize* virtualbase_SizeHint() const { return new QSize(QMessageBox::sizeHint()); } // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; // Subclass to allow providing a Go implementation virtual QSize minimumSizeHint() const override { if (handle__MinimumSizeHint == 0) { return QMessageBox::minimumSizeHint(); } QSize* callback_return_value = miqt_exec_callback_QMessageBox_MinimumSizeHint(const_cast(this), handle__MinimumSizeHint); return *callback_return_value; } // Wrapper to allow calling protected method QSize* virtualbase_MinimumSizeHint() const { return new QSize(QMessageBox::minimumSizeHint()); } // cgo.Handle value for overwritten implementation intptr_t handle__Open = 0; // Subclass to allow providing a Go implementation virtual void open() override { if (handle__Open == 0) { QMessageBox::open(); return; } miqt_exec_callback_QMessageBox_Open(this, handle__Open); } // Wrapper to allow calling protected method void virtualbase_Open() { QMessageBox::open(); } // cgo.Handle value for overwritten implementation intptr_t handle__Exec = 0; // Subclass to allow providing a Go implementation virtual int exec() override { if (handle__Exec == 0) { return QMessageBox::exec(); } int callback_return_value = miqt_exec_callback_QMessageBox_Exec(this, handle__Exec); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Exec() { return QMessageBox::exec(); } // cgo.Handle value for overwritten implementation intptr_t handle__Done = 0; // Subclass to allow providing a Go implementation virtual void done(int param1) override { if (handle__Done == 0) { QMessageBox::done(param1); return; } int sigval1 = param1; miqt_exec_callback_QMessageBox_Done(this, handle__Done, sigval1); } // Wrapper to allow calling protected method void virtualbase_Done(int param1) { QMessageBox::done(static_cast(param1)); } // cgo.Handle value for overwritten implementation intptr_t handle__Accept = 0; // Subclass to allow providing a Go implementation virtual void accept() override { if (handle__Accept == 0) { QMessageBox::accept(); return; } miqt_exec_callback_QMessageBox_Accept(this, handle__Accept); } // Wrapper to allow calling protected method void virtualbase_Accept() { QMessageBox::accept(); } // cgo.Handle value for overwritten implementation intptr_t handle__Reject = 0; // Subclass to allow providing a Go implementation virtual void reject() override { if (handle__Reject == 0) { QMessageBox::reject(); return; } miqt_exec_callback_QMessageBox_Reject(this, handle__Reject); } // Wrapper to allow calling protected method void virtualbase_Reject() { QMessageBox::reject(); } // cgo.Handle value for overwritten implementation intptr_t handle__ContextMenuEvent = 0; // Subclass to allow providing a Go implementation virtual void contextMenuEvent(QContextMenuEvent* param1) override { if (handle__ContextMenuEvent == 0) { QMessageBox::contextMenuEvent(param1); return; } QContextMenuEvent* sigval1 = param1; miqt_exec_callback_QMessageBox_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ContextMenuEvent(QContextMenuEvent* param1) { QMessageBox::contextMenuEvent(param1); } // cgo.Handle value for overwritten implementation intptr_t handle__EventFilter = 0; // Subclass to allow providing a Go implementation virtual bool eventFilter(QObject* param1, QEvent* param2) override { if (handle__EventFilter == 0) { return QMessageBox::eventFilter(param1, param2); } QObject* sigval1 = param1; QEvent* sigval2 = param2; bool callback_return_value = miqt_exec_callback_QMessageBox_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* param1, QEvent* param2) { return QMessageBox::eventFilter(param1, param2); } }; QMessageBox* QMessageBox_new(QWidget* parent) { return new MiqtVirtualQMessageBox(parent); } QMessageBox* QMessageBox_new2() { return new MiqtVirtualQMessageBox(); } QMessageBox* QMessageBox_new3(int icon, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(static_cast(icon), title_QString, text_QString); } QMessageBox* QMessageBox_new4(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2)); } QMessageBox* QMessageBox_new5(int icon, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(static_cast(icon), title_QString, text_QString, static_cast(buttons)); } QMessageBox* QMessageBox_new6(int icon, struct miqt_string title, struct miqt_string text, int buttons, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(static_cast(icon), title_QString, text_QString, static_cast(buttons), parent); } QMessageBox* QMessageBox_new7(int icon, struct miqt_string title, struct miqt_string text, int buttons, QWidget* parent, int flags) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(static_cast(icon), title_QString, text_QString, static_cast(buttons), parent, static_cast(flags)); } QMessageBox* QMessageBox_new8(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2, QWidget* parent) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2), parent); } QMessageBox* QMessageBox_new9(struct miqt_string title, struct miqt_string text, int icon, int button0, int button1, int button2, QWidget* parent, int f) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return new MiqtVirtualQMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2), parent, static_cast(f)); } void QMessageBox_virtbase(QMessageBox* src, QDialog** outptr_QDialog) { *outptr_QDialog = static_cast(src); } QMetaObject* QMessageBox_MetaObject(const QMessageBox* self) { return (QMetaObject*) self->metaObject(); } void* QMessageBox_Metacast(QMessageBox* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QMessageBox_Tr(const char* s) { QString _ret = QMessageBox::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMessageBox_AddButton(QMessageBox* self, QAbstractButton* button, int role) { self->addButton(button, static_cast(role)); } QPushButton* QMessageBox_AddButton2(QMessageBox* self, struct miqt_string text, int role) { QString text_QString = QString::fromUtf8(text.data, text.len); return self->addButton(text_QString, static_cast(role)); } QPushButton* QMessageBox_AddButtonWithButton(QMessageBox* self, int button) { return self->addButton(static_cast(button)); } void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button) { self->removeButton(button); } struct miqt_array /* of QAbstractButton* */ QMessageBox_Buttons(const QMessageBox* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } int QMessageBox_ButtonRole(const QMessageBox* self, QAbstractButton* button) { QMessageBox::ButtonRole _ret = self->buttonRole(button); return static_cast(_ret); } void QMessageBox_SetStandardButtons(QMessageBox* self, int buttons) { self->setStandardButtons(static_cast(buttons)); } int QMessageBox_StandardButtons(const QMessageBox* self) { QMessageBox::StandardButtons _ret = self->standardButtons(); return static_cast(_ret); } int QMessageBox_StandardButton(const QMessageBox* self, QAbstractButton* button) { QMessageBox::StandardButton _ret = self->standardButton(button); return static_cast(_ret); } QAbstractButton* QMessageBox_Button(const QMessageBox* self, int which) { return self->button(static_cast(which)); } QPushButton* QMessageBox_DefaultButton(const QMessageBox* self) { return self->defaultButton(); } void QMessageBox_SetDefaultButton(QMessageBox* self, QPushButton* button) { self->setDefaultButton(button); } void QMessageBox_SetDefaultButtonWithButton(QMessageBox* self, int button) { self->setDefaultButton(static_cast(button)); } QAbstractButton* QMessageBox_EscapeButton(const QMessageBox* self) { return self->escapeButton(); } void QMessageBox_SetEscapeButton(QMessageBox* self, QAbstractButton* button) { self->setEscapeButton(button); } void QMessageBox_SetEscapeButtonWithButton(QMessageBox* self, int button) { self->setEscapeButton(static_cast(button)); } QAbstractButton* QMessageBox_ClickedButton(const QMessageBox* self) { return self->clickedButton(); } struct miqt_string QMessageBox_Text(const QMessageBox* self) { QString _ret = self->text(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMessageBox_SetText(QMessageBox* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); self->setText(text_QString); } int QMessageBox_Icon(const QMessageBox* self) { QMessageBox::Icon _ret = self->icon(); return static_cast(_ret); } void QMessageBox_SetIcon(QMessageBox* self, int icon) { self->setIcon(static_cast(icon)); } QPixmap* QMessageBox_IconPixmap(const QMessageBox* self) { return new QPixmap(self->iconPixmap()); } void QMessageBox_SetIconPixmap(QMessageBox* self, QPixmap* pixmap) { self->setIconPixmap(*pixmap); } int QMessageBox_TextFormat(const QMessageBox* self) { Qt::TextFormat _ret = self->textFormat(); return static_cast(_ret); } void QMessageBox_SetTextFormat(QMessageBox* self, int format) { self->setTextFormat(static_cast(format)); } void QMessageBox_SetTextInteractionFlags(QMessageBox* self, int flags) { self->setTextInteractionFlags(static_cast(flags)); } int QMessageBox_TextInteractionFlags(const QMessageBox* self) { Qt::TextInteractionFlags _ret = self->textInteractionFlags(); return static_cast(_ret); } void QMessageBox_SetCheckBox(QMessageBox* self, QCheckBox* cb) { self->setCheckBox(cb); } QCheckBox* QMessageBox_CheckBox(const QMessageBox* self) { return self->checkBox(); } int QMessageBox_Information(QWidget* parent, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString); return static_cast(_ret); } int QMessageBox_Information2(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(button0)); return static_cast(_ret); } int QMessageBox_Question(QWidget* parent, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::question(parent, title_QString, text_QString); return static_cast(_ret); } int QMessageBox_Question2(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Warning(QWidget* parent, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::warning(parent, title_QString, text_QString); return static_cast(_ret); } int QMessageBox_Warning2(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::warning(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Critical(QWidget* parent, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::critical(parent, title_QString, text_QString); return static_cast(_ret); } int QMessageBox_Critical2(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::critical(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } void QMessageBox_About(QWidget* parent, struct miqt_string title, struct miqt_string text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::about(parent, title_QString, text_QString); } void QMessageBox_AboutQt(QWidget* parent) { QMessageBox::aboutQt(parent); } int QMessageBox_Information3(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::information(parent, title_QString, text_QString, static_cast(button0)); } int QMessageBox_Information4(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString); } int QMessageBox_Question3(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0)); } int QMessageBox_Question4(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString); } int QMessageBox_Warning3(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::warning(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Warning4(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString); } int QMessageBox_Critical3(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::critical(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Critical4(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString); } struct miqt_string QMessageBox_ButtonText(const QMessageBox* self, int button) { QString _ret = self->buttonText(static_cast(button)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMessageBox_SetButtonText(QMessageBox* self, int button, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); self->setButtonText(static_cast(button), text_QString); } struct miqt_string QMessageBox_InformativeText(const QMessageBox* self) { QString _ret = self->informativeText(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMessageBox_SetInformativeText(QMessageBox* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); self->setInformativeText(text_QString); } struct miqt_string QMessageBox_DetailedText(const QMessageBox* self) { QString _ret = self->detailedText(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMessageBox_SetDetailedText(QMessageBox* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); self->setDetailedText(text_QString); } void QMessageBox_SetWindowTitle(QMessageBox* self, struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); self->setWindowTitle(title_QString); } void QMessageBox_SetWindowModality(QMessageBox* self, int windowModality) { self->setWindowModality(static_cast(windowModality)); } QPixmap* QMessageBox_StandardIcon(int icon) { return new QPixmap(QMessageBox::standardIcon(static_cast(icon))); } void QMessageBox_ButtonClicked(QMessageBox* self, QAbstractButton* button) { self->buttonClicked(button); } void QMessageBox_connect_ButtonClicked(QMessageBox* self, intptr_t slot) { MiqtVirtualQMessageBox::connect(self, static_cast(&QMessageBox::buttonClicked), self, [=](QAbstractButton* button) { QAbstractButton* sigval1 = button; miqt_exec_callback_QMessageBox_ButtonClicked(slot, sigval1); }); } struct miqt_string QMessageBox_Tr2(const char* s, const char* c) { QString _ret = QMessageBox::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMessageBox_Tr3(const char* s, const char* c, int n) { QString _ret = QMessageBox::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QMessageBox_Information42(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } int QMessageBox_Information5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int defaultButton) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } int QMessageBox_Information52(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); return static_cast(_ret); } int QMessageBox_Question42(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::question(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } int QMessageBox_Question5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int defaultButton) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::question(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } int QMessageBox_Warning42(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::warning(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } int QMessageBox_Warning5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int defaultButton) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::warning(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } int QMessageBox_Critical42(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::critical(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } int QMessageBox_Critical5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int defaultButton) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QMessageBox::StandardButton _ret = QMessageBox::critical(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } void QMessageBox_AboutQt2(QWidget* parent, struct miqt_string title) { QString title_QString = QString::fromUtf8(title.data, title.len); QMessageBox::aboutQt(parent, title_QString); } int QMessageBox_Information53(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::information(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Information6(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::information(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Information54(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Information62(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Information7(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Information8(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } int QMessageBox_Question52(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Question6(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Question53(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Question62(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Question7(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Question8(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } int QMessageBox_Warning6(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::warning(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Warning52(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Warning62(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Warning7(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Warning8(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } int QMessageBox_Critical6(QWidget* parent, struct miqt_string title, struct miqt_string text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); return QMessageBox::critical(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Critical52(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Critical62(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Critical7(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Critical8(QWidget* parent, struct miqt_string title, struct miqt_string text, struct miqt_string button0Text, struct miqt_string button1Text, struct miqt_string button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(title.data, title.len); QString text_QString = QString::fromUtf8(text.data, text.len); QString button0Text_QString = QString::fromUtf8(button0Text.data, button0Text.len); QString button1Text_QString = QString::fromUtf8(button1Text.data, button1Text.len); QString button2Text_QString = QString::fromUtf8(button2Text.data, button2Text.len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } void QMessageBox_override_virtual_Event(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__Event = slot; } bool QMessageBox_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_Event(e); } void QMessageBox_override_virtual_ResizeEvent(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__ResizeEvent = slot; } void QMessageBox_virtualbase_ResizeEvent(void* self, QResizeEvent* event) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_ResizeEvent(event); } void QMessageBox_override_virtual_ShowEvent(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__ShowEvent = slot; } void QMessageBox_virtualbase_ShowEvent(void* self, QShowEvent* event) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_ShowEvent(event); } void QMessageBox_override_virtual_CloseEvent(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__CloseEvent = slot; } void QMessageBox_virtualbase_CloseEvent(void* self, QCloseEvent* event) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_CloseEvent(event); } void QMessageBox_override_virtual_KeyPressEvent(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__KeyPressEvent = slot; } void QMessageBox_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_KeyPressEvent(event); } void QMessageBox_override_virtual_ChangeEvent(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__ChangeEvent = slot; } void QMessageBox_virtualbase_ChangeEvent(void* self, QEvent* event) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_ChangeEvent(event); } void QMessageBox_override_virtual_SetVisible(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__SetVisible = slot; } void QMessageBox_virtualbase_SetVisible(void* self, bool visible) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_SetVisible(visible); } void QMessageBox_override_virtual_SizeHint(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__SizeHint = slot; } QSize* QMessageBox_virtualbase_SizeHint(const void* self) { return ( (const MiqtVirtualQMessageBox*)(self) )->virtualbase_SizeHint(); } void QMessageBox_override_virtual_MinimumSizeHint(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__MinimumSizeHint = slot; } QSize* QMessageBox_virtualbase_MinimumSizeHint(const void* self) { return ( (const MiqtVirtualQMessageBox*)(self) )->virtualbase_MinimumSizeHint(); } void QMessageBox_override_virtual_Open(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__Open = slot; } void QMessageBox_virtualbase_Open(void* self) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_Open(); } void QMessageBox_override_virtual_Exec(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__Exec = slot; } int QMessageBox_virtualbase_Exec(void* self) { return ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_Exec(); } void QMessageBox_override_virtual_Done(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__Done = slot; } void QMessageBox_virtualbase_Done(void* self, int param1) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_Done(param1); } void QMessageBox_override_virtual_Accept(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__Accept = slot; } void QMessageBox_virtualbase_Accept(void* self) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_Accept(); } void QMessageBox_override_virtual_Reject(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__Reject = slot; } void QMessageBox_virtualbase_Reject(void* self) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_Reject(); } void QMessageBox_override_virtual_ContextMenuEvent(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__ContextMenuEvent = slot; } void QMessageBox_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1) { ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_ContextMenuEvent(param1); } void QMessageBox_override_virtual_EventFilter(void* self, intptr_t slot) { dynamic_cast( (QMessageBox*)(self) )->handle__EventFilter = slot; } bool QMessageBox_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2) { return ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_EventFilter(param1, param2); } void QMessageBox_Delete(QMessageBox* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }