From b1aed2bbf4f218c2416351ca20757a383113bf48 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 12 Sep 2023 02:43:00 +0300 Subject: [PATCH] libs: match the applets case-insensitively in Plasma::WidgetExplorerPrivate::filterApplets() note that the old implementation was not matching the plugin name, only the applet name and comment. could match other applet info but that would be greedy Signed-off-by: Ivailo Monev --- libs/plasmagenericshell/widgetsexplorer/widgetexplorer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/plasmagenericshell/widgetsexplorer/widgetexplorer.cpp b/libs/plasmagenericshell/widgetsexplorer/widgetexplorer.cpp index 8c673b3f..7b9a0a98 100644 --- a/libs/plasmagenericshell/widgetsexplorer/widgetexplorer.cpp +++ b/libs/plasmagenericshell/widgetsexplorer/widgetexplorer.cpp @@ -446,7 +446,10 @@ void WidgetExplorerPrivate::filterApplets(const QString &text) if (!text.isEmpty()) { const QString appletName = appletInfo.name(); const QString appletComment = appletInfo.comment(); - if (appletName.contains(text) || appletPluginName.contains(text) || appletComment.contains(text)) { + if (appletName.contains(text, Qt::CaseInsensitive) + || appletPluginName.contains(text, Qt::CaseInsensitive) + || appletComment.contains(text, Qt::CaseInsensitive)) + { appletFrame->setVisible(true); hasapplets = true; }