mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
23 lines
435 B
C++
23 lines
435 B
C++
#include <QJsonObject>
|
|
#include <QStaticPlugin>
|
|
#include <qplugin.h>
|
|
#include "gen_qplugin.h"
|
|
|
|
#ifndef _Bool
|
|
#define _Bool bool
|
|
#endif
|
|
#include "_cgo_export.h"
|
|
|
|
QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self) {
|
|
return new QJsonObject(self->metaData());
|
|
}
|
|
|
|
void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QStaticPlugin*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|