Implement interfaces().

This commit is contained in:
Gerhard Hoffmann 2023-11-17 13:44:45 +01:00
parent 88670c1079
commit 00dbf4485a

View File

@ -181,6 +181,16 @@ void ATBVMCPlugin::reset() {
} }
QStringList ATBVMCPlugin::interfaces() const {
QStringList result;
int const count = this->metaObject()->classInfoCount();
for (int i = 0; i < count; ++i) {
QString const info(QString::fromLatin1(this->metaObject()->classInfo(i).value()));
if (info == "Interface")
result << info;
}
return result;
}
#if QT_VERSION < 0x050000 #if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(ATBVMCPlugin, ATBVMCPlugin) Q_EXPORT_PLUGIN2(ATBVMCPlugin, ATBVMCPlugin)