2024-10-20 05:21:03 +00:00
|
|
|
#include <QRunnable>
|
|
|
|
#include <qrunnable.h>
|
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|