Adapt to KService::property API change
This commit is contained in:
parent
ea9d6ef4b3
commit
47edb14425
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ static QStringList fetchProcessServiceField(const QString &executablePath, const
|
|||
return {};
|
||||
}
|
||||
|
||||
const auto fieldValues = servicesFound.first()->property(fieldName).toStringList();
|
||||
const auto fieldValues = servicesFound.first()->property<QStringList>(fieldName);
|
||||
if (KWIN_UTILS().isDebugEnabled()) {
|
||||
qCDebug(KWIN_UTILS) << "Interfaces found for" << executablePath << fieldName << ":" << fieldValues;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ static const QString windowDesktopFileName(Window *window)
|
|||
// Fallback to StartupWMClass for legacy apps
|
||||
const auto resourceName = window->resourceName();
|
||||
const auto service = KApplicationTrader::query([&resourceName](const KService::Ptr &service) {
|
||||
return service->property("StartupWMClass").toString().compare(resourceName, Qt::CaseInsensitive) == 0;
|
||||
return service->property<QString>("StartupWMClass").compare(resourceName, Qt::CaseInsensitive) == 0;
|
||||
});
|
||||
|
||||
if (!service.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue