miqt/qt/gen_qrunnable.cpp

30 lines
587 B
C++
Raw Normal View History

#include <QRunnable>
#include <qrunnable.h>
2024-08-29 07:01:51 +00:00
#include "gen_qrunnable.h"
#include "_cgo_export.h"
void QRunnable_Run(QRunnable* self) {
self->run();
}
bool QRunnable_AutoDelete(const QRunnable* self) {
return self->autoDelete();
}
void QRunnable_SetAutoDelete(QRunnable* self, bool _autoDelete) {
self->setAutoDelete(_autoDelete);
}
void QRunnable_OperatorAssign(QRunnable* self, QRunnable* param1) {
self->operator=(*param1);
}
2024-11-19 06:29:06 +00:00
void QRunnable_Delete(QRunnable* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QRunnable*>( self );
} else {
delete self;
}
}