Fix interfaces().

This commit is contained in:
Gerhard Hoffmann 2023-11-17 13:47:55 +01:00
parent 00dbf4485a
commit 9fa37d125d

View File

@ -185,11 +185,13 @@ QStringList ATBVMCPlugin::interfaces() const {
QStringList result; QStringList result;
int const count = this->metaObject()->classInfoCount(); int const count = this->metaObject()->classInfoCount();
for (int i = 0; i < count; ++i) { for (int i = 0; i < count; ++i) {
QString const info(QString::fromLatin1(this->metaObject()->classInfo(i).value())); QString const name(QString::fromLatin1(this->metaObject()->classInfo(i).name()));
if (info == "Interface") QString const value(QString::fromLatin1(this->metaObject()->classInfo(i).value()));
result << info; if (name == "Interface") {
} result << value;
return result; }
}
return result;
} }
#if QT_VERSION < 0x050000 #if QT_VERSION < 0x050000