Fix interfaces().
This commit is contained in:
		@@ -185,11 +185,13 @@ 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;
 | 
			
		||||
        QString const name(QString::fromLatin1(this->metaObject()->classInfo(i).name()));
 | 
			
		||||
        QString const value(QString::fromLatin1(this->metaObject()->classInfo(i).value()));
 | 
			
		||||
        if (name == "Interface") {
 | 
			
		||||
            result << value;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return result;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#if QT_VERSION < 0x050000
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user