mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T192, case insensitive name check
This commit is contained in:
@@ -163,9 +163,9 @@ namespace BlackMisc
|
|||||||
const QMetaObject *mo = object->metaObject();
|
const QMetaObject *mo = object->metaObject();
|
||||||
for (int i = 0; i < mo->classInfoCount(); i++)
|
for (int i = 0; i < mo->classInfoCount(); i++)
|
||||||
{
|
{
|
||||||
QMetaClassInfo ci = mo->classInfo(i);
|
const QMetaClassInfo ci = mo->classInfo(i);
|
||||||
QString name(ci.name());
|
const QString name = QString(ci.name()).toLower();
|
||||||
if (name == "D-Bus Interface") { return QString(ci.value()); }
|
if (name == "d-bus interface") { return QString(ci.value()); }
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user