2024-08-25 04:08:24 +00:00
|
|
|
#include <QAction>
|
|
|
|
#include <QActionGroup>
|
|
|
|
#include <QFont>
|
|
|
|
#include <QGraphicsWidget>
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QKeySequence>
|
|
|
|
#include <QList>
|
|
|
|
#include <QMenu>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QVariant>
|
|
|
|
#include <QWidget>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qaction.h"
|
|
|
|
#include "gen_qaction.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QAction* QAction_new() {
|
|
|
|
return new QAction();
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction* QAction_new2(struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QAction(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction* QAction_new3(QIcon* icon, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QAction(*icon, text_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
QAction* QAction_new4(QObject* parent) {
|
|
|
|
return new QAction(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction* QAction_new5(struct miqt_string* text, QObject* parent) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QAction(text_QString, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction* QAction_new6(QIcon* icon, struct miqt_string* text, QObject* parent) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QAction(*icon, text_QString, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QAction_MetaObject(const QAction* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QAction_Metacast(QAction* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_Tr(const char* s) {
|
|
|
|
QString _ret = QAction::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QAction::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetActionGroup(QAction* self, QActionGroup* group) {
|
|
|
|
self->setActionGroup(group);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QActionGroup* QAction_ActionGroup(const QAction* self) {
|
|
|
|
return self->actionGroup();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetIcon(QAction* self, QIcon* icon) {
|
|
|
|
self->setIcon(*icon);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QAction_Icon(const QAction* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QIcon(self->icon());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QAction_SetText(QAction* self, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setText(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_Text(const QAction* self) {
|
|
|
|
QString _ret = self->text();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QAction_SetIconText(QAction* self, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setIconText(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_IconText(const QAction* self) {
|
|
|
|
QString _ret = self->iconText();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QAction_SetToolTip(QAction* self, struct miqt_string* tip) {
|
|
|
|
QString tip_QString = QString::fromUtf8(&tip->data, tip->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setToolTip(tip_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_ToolTip(const QAction* self) {
|
|
|
|
QString _ret = self->toolTip();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QAction_SetStatusTip(QAction* self, struct miqt_string* statusTip) {
|
|
|
|
QString statusTip_QString = QString::fromUtf8(&statusTip->data, statusTip->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setStatusTip(statusTip_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_StatusTip(const QAction* self) {
|
|
|
|
QString _ret = self->statusTip();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QAction_SetWhatsThis(QAction* self, struct miqt_string* what) {
|
|
|
|
QString what_QString = QString::fromUtf8(&what->data, what->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setWhatsThis(what_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_WhatsThis(const QAction* self) {
|
|
|
|
QString _ret = self->whatsThis();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAction_SetPriority(QAction* self, int priority) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setPriority(static_cast<QAction::Priority>(priority));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QAction_Priority(const QAction* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction::Priority _ret = self->priority();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMenu* QAction_Menu(const QAction* self) {
|
|
|
|
return self->menu();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetMenu(QAction* self, QMenu* menu) {
|
|
|
|
self->setMenu(menu);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetSeparator(QAction* self, bool b) {
|
|
|
|
self->setSeparator(b);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsSeparator(const QAction* self) {
|
|
|
|
return self->isSeparator();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetShortcut(QAction* self, QKeySequence* shortcut) {
|
|
|
|
self->setShortcut(*shortcut);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QKeySequence* QAction_Shortcut(const QAction* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QKeySequence(self->shortcut());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-16 07:33:40 +00:00
|
|
|
void QAction_SetShortcuts(QAction* self, struct miqt_array* /* of QKeySequence* */ shortcuts) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QList<QKeySequence> shortcuts_QList;
|
2024-09-14 22:29:05 +00:00
|
|
|
shortcuts_QList.reserve(shortcuts->len);
|
|
|
|
QKeySequence** shortcuts_arr = static_cast<QKeySequence**>(shortcuts->data);
|
|
|
|
for(size_t i = 0; i < shortcuts->len; ++i) {
|
|
|
|
shortcuts_QList.push_back(*(shortcuts_arr[i]));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
self->setShortcuts(shortcuts_QList);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAction_SetShortcutsWithShortcuts(QAction* self, int shortcuts) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setShortcuts(static_cast<QKeySequence::StandardKey>(shortcuts));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QAction_Shortcuts(const QAction* self) {
|
|
|
|
QList<QKeySequence> _ret = self->shortcuts();
|
2024-09-17 06:29:11 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
|
|
QKeySequence** _arr = static_cast<QKeySequence**>(malloc(sizeof(QKeySequence*) * _ret.length()));
|
2024-09-14 22:29:05 +00:00
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = new QKeySequence(_ret[i]);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAction_SetShortcutContext(QAction* self, int context) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setShortcutContext(static_cast<Qt::ShortcutContext>(context));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QAction_ShortcutContext(const QAction* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::ShortcutContext _ret = self->shortcutContext();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetAutoRepeat(QAction* self, bool autoRepeat) {
|
|
|
|
self->setAutoRepeat(autoRepeat);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_AutoRepeat(const QAction* self) {
|
|
|
|
return self->autoRepeat();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetFont(QAction* self, QFont* font) {
|
|
|
|
self->setFont(*font);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QFont* QAction_Font(const QAction* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QFont(self->font());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetCheckable(QAction* self, bool checkable) {
|
|
|
|
self->setCheckable(checkable);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsCheckable(const QAction* self) {
|
|
|
|
return self->isCheckable();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QVariant* QAction_Data(const QAction* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QVariant(self->data());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetData(QAction* self, QVariant* varVal) {
|
|
|
|
self->setData(*varVal);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsChecked(const QAction* self) {
|
|
|
|
return self->isChecked();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsEnabled(const QAction* self) {
|
|
|
|
return self->isEnabled();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsVisible(const QAction* self) {
|
|
|
|
return self->isVisible();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAction_Activate(QAction* self, int event) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->activate(static_cast<QAction::ActionEvent>(event));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QAction_ShowStatusText(QAction* self) {
|
|
|
|
return self->showStatusText();
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QAction_SetMenuRole(QAction* self, int menuRole) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setMenuRole(static_cast<QAction::MenuRole>(menuRole));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QAction_MenuRole(const QAction* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction::MenuRole _ret = self->menuRole();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetIconVisibleInMenu(QAction* self, bool visible) {
|
|
|
|
self->setIconVisibleInMenu(visible);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsIconVisibleInMenu(const QAction* self) {
|
|
|
|
return self->isIconVisibleInMenu();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetShortcutVisibleInContextMenu(QAction* self, bool show) {
|
|
|
|
self->setShortcutVisibleInContextMenu(show);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsShortcutVisibleInContextMenu(const QAction* self) {
|
|
|
|
return self->isShortcutVisibleInContextMenu();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QAction_ParentWidget(const QAction* self) {
|
|
|
|
return self->parentWidget();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QAction_AssociatedWidgets(const QAction* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
QList<QWidget *> _ret = self->associatedWidgets();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QWidget** _arr = static_cast<QWidget**>(malloc(sizeof(QWidget*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QAction_AssociatedGraphicsWidgets(const QAction* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
QList<QGraphicsWidget *> _ret = self->associatedGraphicsWidgets();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QGraphicsWidget** _arr = static_cast<QGraphicsWidget**>(malloc(sizeof(QGraphicsWidget*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Trigger(QAction* self) {
|
|
|
|
self->trigger();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Hover(QAction* self) {
|
|
|
|
self->hover();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetChecked(QAction* self, bool checked) {
|
|
|
|
self->setChecked(checked);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Toggle(QAction* self) {
|
|
|
|
self->toggle();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetEnabled(QAction* self, bool enabled) {
|
|
|
|
self->setEnabled(enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetDisabled(QAction* self, bool b) {
|
|
|
|
self->setDisabled(b);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_SetVisible(QAction* self, bool visible) {
|
|
|
|
self->setVisible(visible);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Changed(QAction* self) {
|
|
|
|
self->changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_connect_Changed(QAction* self, void* slot) {
|
|
|
|
QAction::connect(self, static_cast<void (QAction::*)()>(&QAction::changed), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAction_Changed(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Triggered(QAction* self) {
|
|
|
|
self->triggered();
|
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
void QAction_connect_Triggered(QAction* self, void* slot) {
|
|
|
|
QAction::connect(self, static_cast<void (QAction::*)(bool)>(&QAction::triggered), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAction_Triggered(slot);
|
2024-09-07 03:31:00 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_Hovered(QAction* self) {
|
|
|
|
self->hovered();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_connect_Hovered(QAction* self, void* slot) {
|
|
|
|
QAction::connect(self, static_cast<void (QAction::*)()>(&QAction::hovered), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QAction_Hovered(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Toggled(QAction* self, bool param1) {
|
|
|
|
self->toggled(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_connect_Toggled(QAction* self, void* slot) {
|
|
|
|
QAction::connect(self, static_cast<void (QAction::*)(bool)>(&QAction::toggled), self, [=](bool param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = param1;
|
|
|
|
miqt_exec_callback_QAction_Toggled(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QAction::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QAction::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QAction::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QAction::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QAction_ShowStatusText1(QAction* self, QWidget* widget) {
|
|
|
|
return self->showStatusText(widget);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Triggered1(QAction* self, bool checked) {
|
|
|
|
self->triggered(checked);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_connect_Triggered1(QAction* self, void* slot) {
|
|
|
|
QAction::connect(self, static_cast<void (QAction::*)(bool)>(&QAction::triggered), self, [=](bool checked) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = checked;
|
|
|
|
miqt_exec_callback_QAction_Triggered1(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QAction_Delete(QAction* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|