From dd72824ab1c4301e7dfc94408a95e352532e21b6 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Wed, 20 Oct 2021 11:23:31 +0200 Subject: [PATCH] Port to KJsonUtils::readTranslatedString --- .../shellprivate/widgetexplorer/plasmaappletitemmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp b/components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp index 5042da98d..51c04a35b 100644 --- a/components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp +++ b/components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -122,7 +123,7 @@ void PlasmaAppletItem::setRunning(int count) bool PlasmaAppletItem::matches(const QString &pattern) const { - const QString keywordsList = KPluginMetaData::readTranslatedString(m_info.rawData(), QStringLiteral("Keywords")); + const QString keywordsList = KJsonUtils::readTranslatedString(m_info.rawData(), QStringLiteral("Keywords")); const auto keywords = keywordsList.splitRef(QLatin1Char(';'), Qt::SkipEmptyParts); for (const auto &keyword : keywords) {