Port away from KService usage
This commit is contained in:
parent
5d41347527
commit
c035f704a1
@ -121,7 +121,7 @@ void PlasmaAppletItem::setRunning(int count)
|
|||||||
bool PlasmaAppletItem::matches(const QString &pattern) const
|
bool PlasmaAppletItem::matches(const QString &pattern) const
|
||||||
{
|
{
|
||||||
if (m_info.service()) {
|
if (m_info.service()) {
|
||||||
const QStringList keywords = m_info.service()->keywords();
|
const QStringList keywords = m_info.property("Keywords").toStringList();
|
||||||
foreach (const QString &keyword, keywords) {
|
foreach (const QString &keyword, keywords) {
|
||||||
if (keyword.startsWith(pattern, Qt::CaseInsensitive)) {
|
if (keyword.startsWith(pattern, Qt::CaseInsensitive)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user