Skip to content

Commit

Permalink
qt: rebuild for qt6 (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
mappu committed Oct 11, 2024
1 parent c29748a commit ffe0a0a
Show file tree
Hide file tree
Showing 1,010 changed files with 23,418 additions and 37,332 deletions.
51 changes: 0 additions & 51 deletions qt/gen_qabstractanimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ struct miqt_string* QAbstractAnimation_Tr(const char* s) {
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAbstractAnimation_TrUtf8(const char* s) {
QString _ret = QAbstractAnimation::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

int QAbstractAnimation_State(const QAbstractAnimation* self) {
QAbstractAnimation::State _ret = self->state();
return static_cast<int>(_ret);
Expand Down Expand Up @@ -163,20 +156,6 @@ struct miqt_string* QAbstractAnimation_Tr3(const char* s, const char* c, int n)
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAbstractAnimation_TrUtf82(const char* s, const char* c) {
QString _ret = QAbstractAnimation::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAbstractAnimation_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QAbstractAnimation::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

void QAbstractAnimation_Start1(QAbstractAnimation* self, int policy) {
self->start(static_cast<QAbstractAnimation::DeletionPolicy>(policy));
}
Expand Down Expand Up @@ -208,13 +187,6 @@ struct miqt_string* QAnimationDriver_Tr(const char* s) {
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAnimationDriver_TrUtf8(const char* s) {
QString _ret = QAnimationDriver::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

void QAnimationDriver_Advance(QAnimationDriver* self) {
self->advance();
}
Expand All @@ -236,15 +208,6 @@ long long QAnimationDriver_Elapsed(const QAnimationDriver* self) {
return static_cast<long long>(_ret);
}

void QAnimationDriver_SetStartTime(QAnimationDriver* self, long long startTime) {
self->setStartTime(static_cast<qint64>(startTime));
}

long long QAnimationDriver_StartTime(const QAnimationDriver* self) {
qint64 _ret = self->startTime();
return static_cast<long long>(_ret);
}

void QAnimationDriver_Started(QAnimationDriver* self) {
self->started();
}
Expand Down Expand Up @@ -279,20 +242,6 @@ struct miqt_string* QAnimationDriver_Tr3(const char* s, const char* c, int n) {
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAnimationDriver_TrUtf82(const char* s, const char* c) {
QString _ret = QAnimationDriver::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAnimationDriver_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QAnimationDriver::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

void QAnimationDriver_Delete(QAnimationDriver* self) {
delete self;
}
Expand Down
70 changes: 0 additions & 70 deletions qt/gen_qabstractanimation.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,6 @@ func QAbstractAnimation_Tr(s string) string {
return _ret
}

func QAbstractAnimation_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QAbstractAnimation_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func (this *QAbstractAnimation) State() QAbstractAnimation__State {
return (QAbstractAnimation__State)(C.QAbstractAnimation_State(this.h))
}
Expand Down Expand Up @@ -256,28 +247,6 @@ func QAbstractAnimation_Tr3(s string, c string, n int) string {
return _ret
}

func QAbstractAnimation_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms *C.struct_miqt_string = C.QAbstractAnimation_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func QAbstractAnimation_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms *C.struct_miqt_string = C.QAbstractAnimation_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func (this *QAbstractAnimation) Start1(policy QAbstractAnimation__DeletionPolicy) {
C.QAbstractAnimation_Start1(this.h, (C.int)(policy))
}
Expand Down Expand Up @@ -350,15 +319,6 @@ func QAnimationDriver_Tr(s string) string {
return _ret
}

func QAnimationDriver_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QAnimationDriver_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func (this *QAnimationDriver) Advance() {
C.QAnimationDriver_Advance(this.h)
}
Expand All @@ -379,14 +339,6 @@ func (this *QAnimationDriver) Elapsed() int64 {
return (int64)(C.QAnimationDriver_Elapsed(this.h))
}

func (this *QAnimationDriver) SetStartTime(startTime int64) {
C.QAnimationDriver_SetStartTime(this.h, (C.longlong)(startTime))
}

func (this *QAnimationDriver) StartTime() int64 {
return (int64)(C.QAnimationDriver_StartTime(this.h))
}

func (this *QAnimationDriver) Started() {
C.QAnimationDriver_Started(this.h)
}
Expand Down Expand Up @@ -443,28 +395,6 @@ func QAnimationDriver_Tr3(s string, c string, n int) string {
return _ret
}

func QAnimationDriver_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms *C.struct_miqt_string = C.QAnimationDriver_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func QAnimationDriver_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms *C.struct_miqt_string = C.QAnimationDriver_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

// Delete this object from C++ memory.
func (this *QAnimationDriver) Delete() {
C.QAnimationDriver_Delete(this.h)
Expand Down
8 changes: 0 additions & 8 deletions qt/gen_qabstractanimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ typedef struct QObject QObject;
QMetaObject* QAbstractAnimation_MetaObject(const QAbstractAnimation* self);
void* QAbstractAnimation_Metacast(QAbstractAnimation* self, const char* param1);
struct miqt_string* QAbstractAnimation_Tr(const char* s);
struct miqt_string* QAbstractAnimation_TrUtf8(const char* s);
int QAbstractAnimation_State(const QAbstractAnimation* self);
QAnimationGroup* QAbstractAnimation_Group(const QAbstractAnimation* self);
int QAbstractAnimation_Direction(const QAbstractAnimation* self);
Expand Down Expand Up @@ -58,8 +57,6 @@ void QAbstractAnimation_Stop(QAbstractAnimation* self);
void QAbstractAnimation_SetCurrentTime(QAbstractAnimation* self, int msecs);
struct miqt_string* QAbstractAnimation_Tr2(const char* s, const char* c);
struct miqt_string* QAbstractAnimation_Tr3(const char* s, const char* c, int n);
struct miqt_string* QAbstractAnimation_TrUtf82(const char* s, const char* c);
struct miqt_string* QAbstractAnimation_TrUtf83(const char* s, const char* c, int n);
void QAbstractAnimation_Start1(QAbstractAnimation* self, int policy);
void QAbstractAnimation_Delete(QAbstractAnimation* self);

Expand All @@ -68,22 +65,17 @@ QAnimationDriver* QAnimationDriver_new2(QObject* parent);
QMetaObject* QAnimationDriver_MetaObject(const QAnimationDriver* self);
void* QAnimationDriver_Metacast(QAnimationDriver* self, const char* param1);
struct miqt_string* QAnimationDriver_Tr(const char* s);
struct miqt_string* QAnimationDriver_TrUtf8(const char* s);
void QAnimationDriver_Advance(QAnimationDriver* self);
void QAnimationDriver_Install(QAnimationDriver* self);
void QAnimationDriver_Uninstall(QAnimationDriver* self);
bool QAnimationDriver_IsRunning(const QAnimationDriver* self);
long long QAnimationDriver_Elapsed(const QAnimationDriver* self);
void QAnimationDriver_SetStartTime(QAnimationDriver* self, long long startTime);
long long QAnimationDriver_StartTime(const QAnimationDriver* self);
void QAnimationDriver_Started(QAnimationDriver* self);
void QAnimationDriver_connect_Started(QAnimationDriver* self, void* slot);
void QAnimationDriver_Stopped(QAnimationDriver* self);
void QAnimationDriver_connect_Stopped(QAnimationDriver* self, void* slot);
struct miqt_string* QAnimationDriver_Tr2(const char* s, const char* c);
struct miqt_string* QAnimationDriver_Tr3(const char* s, const char* c, int n);
struct miqt_string* QAnimationDriver_TrUtf82(const char* s, const char* c);
struct miqt_string* QAnimationDriver_TrUtf83(const char* s, const char* c, int n);
void QAnimationDriver_Delete(QAnimationDriver* self);

#ifdef __cplusplus
Expand Down
25 changes: 0 additions & 25 deletions qt/gen_qabstractbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ struct miqt_string* QAbstractButton_Tr(const char* s) {
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAbstractButton_TrUtf8(const char* s) {
QString _ret = QAbstractButton::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

void QAbstractButton_SetText(QAbstractButton* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
self->setText(text_QString);
Expand Down Expand Up @@ -196,24 +189,6 @@ struct miqt_string* QAbstractButton_Tr3(const char* s, const char* c, int n) {
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAbstractButton_TrUtf82(const char* s, const char* c) {
QString _ret = QAbstractButton::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

struct miqt_string* QAbstractButton_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QAbstractButton::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}

void QAbstractButton_AnimateClick1(QAbstractButton* self, int msec) {
self->animateClick(static_cast<int>(msec));
}

void QAbstractButton_Clicked1(QAbstractButton* self, bool checked) {
self->clicked(checked);
}
Expand Down
35 changes: 0 additions & 35 deletions qt/gen_qabstractbutton.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ func QAbstractButton_Tr(s string) string {
return _ret
}

func QAbstractButton_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QAbstractButton_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func (this *QAbstractButton) SetText(text string) {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
Expand Down Expand Up @@ -276,32 +267,6 @@ func QAbstractButton_Tr3(s string, c string, n int) string {
return _ret
}

func QAbstractButton_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms *C.struct_miqt_string = C.QAbstractButton_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func QAbstractButton_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms *C.struct_miqt_string = C.QAbstractButton_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}

func (this *QAbstractButton) AnimateClick1(msec int) {
C.QAbstractButton_AnimateClick1(this.h, (C.int)(msec))
}

func (this *QAbstractButton) Clicked1(checked bool) {
C.QAbstractButton_Clicked1(this.h, (C.bool)(checked))
}
Expand Down
4 changes: 0 additions & 4 deletions qt/gen_qabstractbutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ typedef struct QSize QSize;
QMetaObject* QAbstractButton_MetaObject(const QAbstractButton* self);
void* QAbstractButton_Metacast(QAbstractButton* self, const char* param1);
struct miqt_string* QAbstractButton_Tr(const char* s);
struct miqt_string* QAbstractButton_TrUtf8(const char* s);
void QAbstractButton_SetText(QAbstractButton* self, struct miqt_string* text);
struct miqt_string* QAbstractButton_Text(const QAbstractButton* self);
void QAbstractButton_SetIcon(QAbstractButton* self, QIcon* icon);
Expand Down Expand Up @@ -69,9 +68,6 @@ void QAbstractButton_Toggled(QAbstractButton* self, bool checked);
void QAbstractButton_connect_Toggled(QAbstractButton* self, void* slot);
struct miqt_string* QAbstractButton_Tr2(const char* s, const char* c);
struct miqt_string* QAbstractButton_Tr3(const char* s, const char* c, int n);
struct miqt_string* QAbstractButton_TrUtf82(const char* s, const char* c);
struct miqt_string* QAbstractButton_TrUtf83(const char* s, const char* c, int n);
void QAbstractButton_AnimateClick1(QAbstractButton* self, int msec);
void QAbstractButton_Clicked1(QAbstractButton* self, bool checked);
void QAbstractButton_connect_Clicked1(QAbstractButton* self, void* slot);
void QAbstractButton_Delete(QAbstractButton* self);
Expand Down
Loading

0 comments on commit ffe0a0a

Please sign in to comment.