miqt/qt6/gen_qfileiconprovider.cpp

24 lines
612 B
C++
Raw Permalink Normal View History

2024-10-20 05:21:03 +00:00
#include <QFileIconProvider>
#include <QFileInfo>
#include <QIcon>
#include <qfileiconprovider.h>
#include "gen_qfileiconprovider.h"
#include "_cgo_export.h"
QFileIconProvider* QFileIconProvider_new() {
return new QFileIconProvider();
}
QIcon* QFileIconProvider_Icon(const QFileIconProvider* self, int typeVal) {
return new QIcon(self->icon(static_cast<QAbstractFileIconProvider::IconType>(typeVal)));
}
QIcon* QFileIconProvider_IconWithInfo(const QFileIconProvider* self, QFileInfo* info) {
return new QIcon(self->icon(*info));
}
void QFileIconProvider_Delete(QFileIconProvider* self) {
delete self;
}