2024-08-25 04:08:24 +00:00
|
|
|
#include <QCalendar>
|
|
|
|
#include <QCalendarWidget>
|
|
|
|
#include <QDate>
|
|
|
|
#include <QDateEdit>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QDateTimeEdit>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#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 <QTime>
|
|
|
|
#include <QTimeEdit>
|
|
|
|
#include <QWidget>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qdatetimeedit.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qdatetimeedit.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateTimeEdit* QDateTimeEdit_new(QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new2() {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QDateTimeEdit();
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateTimeEdit* QDateTimeEdit_new3(QDateTime* dt) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QDateTimeEdit(*dt);
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateTimeEdit* QDateTimeEdit_new4(QDate* d) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QDateTimeEdit(*d);
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateTimeEdit* QDateTimeEdit_new5(QTime* t) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QDateTimeEdit(*t);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new6(QDateTime* dt, QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(*dt, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new7(QDate* d, QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(*d, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new8(QTime* t, QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(*t, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QDateTimeEdit_MetaObject(const QDateTimeEdit* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QDateTimeEdit_Metacast(QDateTimeEdit* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_Tr(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_TrUtf8(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDateTime* QDateTimeEdit_DateTime(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDateTime(self->dateTime());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDate* QDateTimeEdit_Date(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDate(self->date());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QTime* QDateTimeEdit_Time(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QTime(self->time());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QCalendar* QDateTimeEdit_Calendar(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QCalendar(self->calendar());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCalendar(QDateTimeEdit* self, QCalendar* calendar) {
|
|
|
|
self->setCalendar(*calendar);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDateTime* QDateTimeEdit_MinimumDateTime(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDateTime(self->minimumDateTime());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMinimumDateTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMinimumDateTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMinimumDateTime(QDateTimeEdit* self, QDateTime* dt) {
|
|
|
|
self->setMinimumDateTime(*dt);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDateTime* QDateTimeEdit_MaximumDateTime(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDateTime(self->maximumDateTime());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMaximumDateTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMaximumDateTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMaximumDateTime(QDateTimeEdit* self, QDateTime* dt) {
|
|
|
|
self->setMaximumDateTime(*dt);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDateTimeRange(QDateTimeEdit* self, QDateTime* min, QDateTime* max) {
|
|
|
|
self->setDateTimeRange(*min, *max);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDate* QDateTimeEdit_MinimumDate(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDate(self->minimumDate());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMinimumDate(QDateTimeEdit* self, QDate* min) {
|
|
|
|
self->setMinimumDate(*min);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMinimumDate(QDateTimeEdit* self) {
|
|
|
|
self->clearMinimumDate();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QDate* QDateTimeEdit_MaximumDate(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QDate(self->maximumDate());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMaximumDate(QDateTimeEdit* self, QDate* max) {
|
|
|
|
self->setMaximumDate(*max);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMaximumDate(QDateTimeEdit* self) {
|
|
|
|
self->clearMaximumDate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDateRange(QDateTimeEdit* self, QDate* min, QDate* max) {
|
|
|
|
self->setDateRange(*min, *max);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QTime* QDateTimeEdit_MinimumTime(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QTime(self->minimumTime());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMinimumTime(QDateTimeEdit* self, QTime* min) {
|
|
|
|
self->setMinimumTime(*min);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMinimumTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMinimumTime();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QTime* QDateTimeEdit_MaximumTime(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QTime(self->maximumTime());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMaximumTime(QDateTimeEdit* self, QTime* max) {
|
|
|
|
self->setMaximumTime(*max);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMaximumTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMaximumTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetTimeRange(QDateTimeEdit* self, QTime* min, QTime* max) {
|
|
|
|
self->setTimeRange(*min, *max);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDateTimeEdit_DisplayedSections(const QDateTimeEdit* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDateTimeEdit::Sections _ret = self->displayedSections();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QDateTimeEdit_CurrentSection(const QDateTimeEdit* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDateTimeEdit::Section _ret = self->currentSection();
|
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
|
|
|
int QDateTimeEdit_SectionAt(const QDateTimeEdit* self, int index) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDateTimeEdit::Section _ret = self->sectionAt(static_cast<int>(index));
|
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 QDateTimeEdit_SetCurrentSection(QDateTimeEdit* self, int section) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setCurrentSection(static_cast<QDateTimeEdit::Section>(section));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDateTimeEdit_CurrentSectionIndex(const QDateTimeEdit* self) {
|
|
|
|
return self->currentSectionIndex();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCurrentSectionIndex(QDateTimeEdit* self, int index) {
|
|
|
|
self->setCurrentSectionIndex(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QCalendarWidget* QDateTimeEdit_CalendarWidget(const QDateTimeEdit* self) {
|
|
|
|
return self->calendarWidget();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCalendarWidget(QDateTimeEdit* self, QCalendarWidget* calendarWidget) {
|
|
|
|
self->setCalendarWidget(calendarWidget);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDateTimeEdit_SectionCount(const QDateTimeEdit* self) {
|
|
|
|
return self->sectionCount();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QDateTimeEdit_SetSelectedSection(QDateTimeEdit* self, int section) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setSelectedSection(static_cast<QDateTimeEdit::Section>(section));
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_SectionText(const QDateTimeEdit* self, int section) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->sectionText(static_cast<QDateTimeEdit::Section>(section));
|
2024-08-29 07:01:51 +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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_DisplayFormat(const QDateTimeEdit* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->displayFormat();
|
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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
void QDateTimeEdit_SetDisplayFormat(QDateTimeEdit* self, struct miqt_string format) {
|
|
|
|
QString format_QString = QString::fromUtf8(format.data, format.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setDisplayFormat(format_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDateTimeEdit_CalendarPopup(const QDateTimeEdit* self) {
|
|
|
|
return self->calendarPopup();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCalendarPopup(QDateTimeEdit* self, bool enable) {
|
|
|
|
self->setCalendarPopup(enable);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QDateTimeEdit_TimeSpec(const QDateTimeEdit* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::TimeSpec _ret = self->timeSpec();
|
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 QDateTimeEdit_SetTimeSpec(QDateTimeEdit* self, int spec) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setTimeSpec(static_cast<Qt::TimeSpec>(spec));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QDateTimeEdit_SizeHint(const QDateTimeEdit* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->sizeHint());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_Clear(QDateTimeEdit* self) {
|
|
|
|
self->clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_StepBy(QDateTimeEdit* self, int steps) {
|
|
|
|
self->stepBy(static_cast<int>(steps));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QDateTimeEdit_Event(QDateTimeEdit* self, QEvent* event) {
|
|
|
|
return self->event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_DateTimeChanged(QDateTimeEdit* self, QDateTime* dateTime) {
|
|
|
|
self->dateTimeChanged(*dateTime);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDateTimeEdit_connect_DateTimeChanged(QDateTimeEdit* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QDateTimeEdit::connect(self, static_cast<void (QDateTimeEdit::*)(const QDateTime&)>(&QDateTimeEdit::dateTimeChanged), self, [=](const QDateTime& dateTime) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QDateTime& dateTime_ret = dateTime;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QDateTime* sigval1 = const_cast<QDateTime*>(&dateTime_ret);
|
|
|
|
miqt_exec_callback_QDateTimeEdit_DateTimeChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_TimeChanged(QDateTimeEdit* self, QTime* time) {
|
|
|
|
self->timeChanged(*time);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDateTimeEdit_connect_TimeChanged(QDateTimeEdit* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QDateTimeEdit::connect(self, static_cast<void (QDateTimeEdit::*)(const QTime&)>(&QDateTimeEdit::timeChanged), self, [=](const QTime& time) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QTime& time_ret = time;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QTime* sigval1 = const_cast<QTime*>(&time_ret);
|
|
|
|
miqt_exec_callback_QDateTimeEdit_TimeChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_DateChanged(QDateTimeEdit* self, QDate* date) {
|
|
|
|
self->dateChanged(*date);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDateTimeEdit_connect_DateChanged(QDateTimeEdit* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QDateTimeEdit::connect(self, static_cast<void (QDateTimeEdit::*)(const QDate&)>(&QDateTimeEdit::dateChanged), self, [=](const QDate& date) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QDate& date_ret = date;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QDate* sigval1 = const_cast<QDate*>(&date_ret);
|
|
|
|
miqt_exec_callback_QDateTimeEdit_DateChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDateTime(QDateTimeEdit* self, QDateTime* dateTime) {
|
|
|
|
self->setDateTime(*dateTime);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDate(QDateTimeEdit* self, QDate* date) {
|
|
|
|
self->setDate(*date);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetTime(QDateTimeEdit* self, QTime* time) {
|
|
|
|
self->setTime(*time);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_Tr2(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_Tr3(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_TrUtf82(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateTimeEdit_TrUtf83(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_Delete(QDateTimeEdit* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QTimeEdit* QTimeEdit_new(QWidget* parent) {
|
|
|
|
return new QTimeEdit(parent);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QTimeEdit* QTimeEdit_new2() {
|
|
|
|
return new QTimeEdit();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QTimeEdit* QTimeEdit_new3(QTime* time) {
|
|
|
|
return new QTimeEdit(*time);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QTimeEdit* QTimeEdit_new4(QTime* time, QWidget* parent) {
|
|
|
|
return new QTimeEdit(*time, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QTimeEdit_MetaObject(const QTimeEdit* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QTimeEdit_Metacast(QTimeEdit* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeEdit_Tr(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeEdit_TrUtf8(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTimeEdit_UserTimeChanged(QTimeEdit* self, QTime* time) {
|
|
|
|
self->userTimeChanged(*time);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QTimeEdit_connect_UserTimeChanged(QTimeEdit* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QTimeEdit::connect(self, static_cast<void (QTimeEdit::*)(const QTime&)>(&QTimeEdit::userTimeChanged), self, [=](const QTime& time) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QTime& time_ret = time;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QTime* sigval1 = const_cast<QTime*>(&time_ret);
|
|
|
|
miqt_exec_callback_QTimeEdit_UserTimeChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeEdit_Tr2(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeEdit_Tr3(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeEdit_TrUtf82(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeEdit_TrUtf83(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QTimeEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTimeEdit_Delete(QTimeEdit* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateEdit* QDateEdit_new(QWidget* parent) {
|
|
|
|
return new QDateEdit(parent);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateEdit* QDateEdit_new2() {
|
|
|
|
return new QDateEdit();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QDateEdit* QDateEdit_new3(QDate* date) {
|
|
|
|
return new QDateEdit(*date);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QDateEdit* QDateEdit_new4(QDate* date, QWidget* parent) {
|
|
|
|
return new QDateEdit(*date, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QDateEdit_MetaObject(const QDateEdit* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QDateEdit_Metacast(QDateEdit* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateEdit_Tr(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateEdit_TrUtf8(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateEdit_UserDateChanged(QDateEdit* self, QDate* date) {
|
|
|
|
self->userDateChanged(*date);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDateEdit_connect_UserDateChanged(QDateEdit* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QDateEdit::connect(self, static_cast<void (QDateEdit::*)(const QDate&)>(&QDateEdit::userDateChanged), self, [=](const QDate& date) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QDate& date_ret = date;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QDate* sigval1 = const_cast<QDate*>(&date_ret);
|
|
|
|
miqt_exec_callback_QDateEdit_UserDateChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateEdit_Tr2(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateEdit_Tr3(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateEdit_TrUtf82(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDateEdit_TrUtf83(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDateEdit::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateEdit_Delete(QDateEdit* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|