Commit eaa4ee9e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile

parent 89f7326d
......@@ -186,7 +186,7 @@ QStringList DiscoverObject::modes() const
for(int i = obj->metaObject()->propertyOffset(); i<obj->metaObject()->propertyCount(); i++) {
QMetaProperty p = obj->metaObject()->property(i);
QByteArray compName = p.name();
if(compName.startsWith(QLatin1String("top")) && compName.endsWith(QLatin1String("Comp"))) {
if(compName.startsWith("top") && compName.endsWith("Comp")) {
ret += QString::fromLatin1(compName.mid(3, compName.length()-7));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment