fix(app-search-plugin):应用图标使用qt的icon引擎找不到,换成xdg的icon加载引擎
This commit is contained in:
parent
edc634d1d4
commit
e28dae5d10
|
@ -191,7 +191,7 @@ void AppSearchPlugin::run()
|
|||
SearchPluginIface::ResultInfo ri;
|
||||
|
||||
ri.name = data.value(SearchProperty::SearchResultProperty::ApplicationLocalName).toString();
|
||||
ri.icon = IconLoader::loadIconQt(data.value(SearchProperty::SearchResultProperty::ApplicationIconName).toString(), QIcon(":/res/icons/unknown.svg"));
|
||||
ri.icon = IconLoader::loadIconXdg(data.value(SearchProperty::SearchResultProperty::ApplicationIconName).toString(), QIcon(":/res/icons/unknown.svg"));
|
||||
SearchPluginIface::DescriptionInfo description;
|
||||
description.key = QString(tr("Application Description:"));
|
||||
description.value = data.value(SearchProperty::SearchResultProperty::ApplicationDescription).toString();
|
||||
|
|
|
@ -18,6 +18,6 @@ QIcon IconLoader::loadIconQt(const QString &name, const QIcon &fallback)
|
|||
QIcon IconLoader::loadIconXdg(const QString &name, const QIcon &fallback)
|
||||
{
|
||||
QMutexLocker locker(&xdgIconMutex);
|
||||
return XdgIcon::fromTheme("name",fallback);
|
||||
return XdgIcon::fromTheme(name,fallback);
|
||||
}
|
||||
} // UkuiSearch
|
Loading…
Reference in New Issue