2024-08-25 04:08:24 +00:00
|
|
|
#include <QColor>
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QPoint>
|
|
|
|
#include <QRect>
|
|
|
|
#include <QSize>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QTabBar>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QWidget>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qtabbar.h"
|
|
|
|
#include "gen_qtabbar.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QTabBar* QTabBar_new() {
|
|
|
|
return new QTabBar();
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabBar* QTabBar_new2(QWidget* parent) {
|
|
|
|
return new QTabBar(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QTabBar_MetaObject(const QTabBar* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QTabBar_Metacast(QTabBar* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QTabBar_Tr(const char* s) {
|
|
|
|
QString _ret = QTabBar::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* QTabBar_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QTabBar::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
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QTabBar_Shape(const QTabBar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QTabBar::Shape _ret = self->shape();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QTabBar_SetShape(QTabBar* self, int shape) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setShape(static_cast<QTabBar::Shape>(shape));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QTabBar_AddTab(QTabBar* self, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return self->addTab(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QTabBar_AddTab2(QTabBar* self, QIcon* icon, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return self->addTab(*icon, text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QTabBar_InsertTab(QTabBar* self, int index, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return self->insertTab(static_cast<int>(index), text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QTabBar_InsertTab2(QTabBar* self, int index, QIcon* icon, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return self->insertTab(static_cast<int>(index), *icon, text_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_RemoveTab(QTabBar* self, int index) {
|
|
|
|
self->removeTab(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_MoveTab(QTabBar* self, int from, int to) {
|
|
|
|
self->moveTab(static_cast<int>(from), static_cast<int>(to));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_IsTabEnabled(const QTabBar* self, int index) {
|
|
|
|
return self->isTabEnabled(static_cast<int>(index));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetTabEnabled(QTabBar* self, int index, bool enabled) {
|
|
|
|
self->setTabEnabled(static_cast<int>(index), enabled);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_IsTabVisible(const QTabBar* self, int index) {
|
|
|
|
return self->isTabVisible(static_cast<int>(index));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetTabVisible(QTabBar* self, int index, bool visible) {
|
|
|
|
self->setTabVisible(static_cast<int>(index), visible);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QTabBar_TabText(const QTabBar* self, int index) {
|
|
|
|
QString _ret = self->tabText(static_cast<int>(index));
|
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 QTabBar_SetTabText(QTabBar* self, int index, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setTabText(static_cast<int>(index), text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QTabBar_TabTextColor(const QTabBar* self, int index) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QColor(self->tabTextColor(static_cast<int>(index)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetTabTextColor(QTabBar* self, int index, QColor* color) {
|
|
|
|
self->setTabTextColor(static_cast<int>(index), *color);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QTabBar_TabIcon(const QTabBar* self, int index) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QIcon(self->tabIcon(static_cast<int>(index)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetTabIcon(QTabBar* self, int index, QIcon* icon) {
|
|
|
|
self->setTabIcon(static_cast<int>(index), *icon);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QTabBar_ElideMode(const QTabBar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::TextElideMode _ret = self->elideMode();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QTabBar_SetElideMode(QTabBar* self, int mode) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setElideMode(static_cast<Qt::TextElideMode>(mode));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QTabBar_SetTabToolTip(QTabBar* self, int index, struct miqt_string* tip) {
|
|
|
|
QString tip_QString = QString::fromUtf8(&tip->data, tip->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setTabToolTip(static_cast<int>(index), tip_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QTabBar_TabToolTip(const QTabBar* self, int index) {
|
|
|
|
QString _ret = self->tabToolTip(static_cast<int>(index));
|
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 QTabBar_SetTabWhatsThis(QTabBar* self, int index, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setTabWhatsThis(static_cast<int>(index), text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QTabBar_TabWhatsThis(const QTabBar* self, int index) {
|
|
|
|
QString _ret = self->tabWhatsThis(static_cast<int>(index));
|
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 QTabBar_SetTabData(QTabBar* self, int index, QVariant* data) {
|
|
|
|
self->setTabData(static_cast<int>(index), *data);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QVariant* QTabBar_TabData(const QTabBar* self, int index) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QVariant(self->tabData(static_cast<int>(index)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRect* QTabBar_TabRect(const QTabBar* self, int index) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRect(self->tabRect(static_cast<int>(index)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QTabBar_TabAt(const QTabBar* self, QPoint* pos) {
|
|
|
|
return self->tabAt(*pos);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QTabBar_CurrentIndex(const QTabBar* self) {
|
|
|
|
return self->currentIndex();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QTabBar_Count(const QTabBar* self) {
|
|
|
|
return self->count();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QTabBar_SizeHint(const QTabBar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->sizeHint());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QTabBar_MinimumSizeHint(const QTabBar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->minimumSizeHint());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetDrawBase(QTabBar* self, bool drawTheBase) {
|
|
|
|
self->setDrawBase(drawTheBase);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_DrawBase(const QTabBar* self) {
|
|
|
|
return self->drawBase();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QTabBar_IconSize(const QTabBar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->iconSize());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetIconSize(QTabBar* self, QSize* size) {
|
|
|
|
self->setIconSize(*size);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_UsesScrollButtons(const QTabBar* self) {
|
|
|
|
return self->usesScrollButtons();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetUsesScrollButtons(QTabBar* self, bool useButtons) {
|
|
|
|
self->setUsesScrollButtons(useButtons);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_TabsClosable(const QTabBar* self) {
|
|
|
|
return self->tabsClosable();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetTabsClosable(QTabBar* self, bool closable) {
|
|
|
|
self->setTabsClosable(closable);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QTabBar_SetTabButton(QTabBar* self, int index, int position, QWidget* widget) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setTabButton(static_cast<int>(index), static_cast<QTabBar::ButtonPosition>(position), widget);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QWidget* QTabBar_TabButton(const QTabBar* self, int index, int position) {
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->tabButton(static_cast<int>(index), static_cast<QTabBar::ButtonPosition>(position));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QTabBar_SelectionBehaviorOnRemove(const QTabBar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QTabBar::SelectionBehavior _ret = self->selectionBehaviorOnRemove();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QTabBar_SetSelectionBehaviorOnRemove(QTabBar* self, int behavior) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setSelectionBehaviorOnRemove(static_cast<QTabBar::SelectionBehavior>(behavior));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_Expanding(const QTabBar* self) {
|
|
|
|
return self->expanding();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetExpanding(QTabBar* self, bool enabled) {
|
|
|
|
self->setExpanding(enabled);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_IsMovable(const QTabBar* self) {
|
|
|
|
return self->isMovable();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetMovable(QTabBar* self, bool movable) {
|
|
|
|
self->setMovable(movable);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_DocumentMode(const QTabBar* self) {
|
|
|
|
return self->documentMode();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetDocumentMode(QTabBar* self, bool set) {
|
|
|
|
self->setDocumentMode(set);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_AutoHide(const QTabBar* self) {
|
|
|
|
return self->autoHide();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetAutoHide(QTabBar* self, bool hide) {
|
|
|
|
self->setAutoHide(hide);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_ChangeCurrentOnDrag(const QTabBar* self) {
|
|
|
|
return self->changeCurrentOnDrag();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetChangeCurrentOnDrag(QTabBar* self, bool change) {
|
|
|
|
self->setChangeCurrentOnDrag(change);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QTabBar_AccessibleTabName(const QTabBar* self, int index) {
|
|
|
|
QString _ret = self->accessibleTabName(static_cast<int>(index));
|
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 QTabBar_SetAccessibleTabName(QTabBar* self, int index, struct miqt_string* name) {
|
|
|
|
QString name_QString = QString::fromUtf8(&name->data, name->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setAccessibleTabName(static_cast<int>(index), name_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_SetCurrentIndex(QTabBar* self, int index) {
|
|
|
|
self->setCurrentIndex(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_CurrentChanged(QTabBar* self, int index) {
|
|
|
|
self->currentChanged(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_connect_CurrentChanged(QTabBar* self, void* slot) {
|
|
|
|
QTabBar::connect(self, static_cast<void (QTabBar::*)(int)>(&QTabBar::currentChanged), self, [=](int index) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = index;
|
|
|
|
miqt_exec_callback_QTabBar_CurrentChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_TabCloseRequested(QTabBar* self, int index) {
|
|
|
|
self->tabCloseRequested(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_connect_TabCloseRequested(QTabBar* self, void* slot) {
|
|
|
|
QTabBar::connect(self, static_cast<void (QTabBar::*)(int)>(&QTabBar::tabCloseRequested), self, [=](int index) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = index;
|
|
|
|
miqt_exec_callback_QTabBar_TabCloseRequested(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_TabMoved(QTabBar* self, int from, int to) {
|
|
|
|
self->tabMoved(static_cast<int>(from), static_cast<int>(to));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_connect_TabMoved(QTabBar* self, void* slot) {
|
|
|
|
QTabBar::connect(self, static_cast<void (QTabBar::*)(int, int)>(&QTabBar::tabMoved), self, [=](int from, int to) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = from;
|
|
|
|
int sigval2 = to;
|
|
|
|
miqt_exec_callback_QTabBar_TabMoved(slot, sigval1, sigval2);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_TabBarClicked(QTabBar* self, int index) {
|
|
|
|
self->tabBarClicked(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_connect_TabBarClicked(QTabBar* self, void* slot) {
|
|
|
|
QTabBar::connect(self, static_cast<void (QTabBar::*)(int)>(&QTabBar::tabBarClicked), self, [=](int index) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = index;
|
|
|
|
miqt_exec_callback_QTabBar_TabBarClicked(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_TabBarDoubleClicked(QTabBar* self, int index) {
|
|
|
|
self->tabBarDoubleClicked(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_connect_TabBarDoubleClicked(QTabBar* self, void* slot) {
|
|
|
|
QTabBar::connect(self, static_cast<void (QTabBar::*)(int)>(&QTabBar::tabBarDoubleClicked), self, [=](int index) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = index;
|
|
|
|
miqt_exec_callback_QTabBar_TabBarDoubleClicked(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QTabBar_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QTabBar::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* QTabBar_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QTabBar::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* QTabBar_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QTabBar::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* QTabBar_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QTabBar::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
|
|
|
}
|
|
|
|
|
|
|
|
void QTabBar_Delete(QTabBar* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|