Bug 489727

Summary: Searching for "font" returns unrelated results
Product: [Frameworks and Libraries] frameworks-kwidgetsaddons Reporter: medin <med.medin.2014>
Component: generalAssignee: Christoph Feck <cfeck>
Status: CONFIRMED ---    
Severity: normal CC: christoph, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: image1
image2
image

Description medin 2024-07-04 10:09:12 UTC
Created attachment 171358 [details]
image1

If you search for the word "font" in Konsole settings, it will return unrelated results. See attached images for more info.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 medin 2024-07-04 10:09:56 UTC
Created attachment 171359 [details]
image2
Comment 2 medin 2024-07-04 10:19:36 UTC
Created attachment 171361 [details]
image

It seems not specific to Konsole, it also appears on other apps like Kate.
Comment 3 Christoph Cullmann 2025-03-23 19:06:01 UTC
I think that is due to searching in potential rich text with

template<typename WidgetType>
static QList<QWidget *> hasMatchingText(const QString &text, QWidget *page)
{
    QList<QWidget *> ret;
    const auto widgets = page->findChildren<WidgetType *>();
    for (auto label : widgets) {
        if (removeAcceleratorMarker(label->text()).contains(text, Qt::CaseInsensitive)) {
            ret << label;
        }
    }
    return ret;
}
Comment 4 Christoph Cullmann 2025-03-23 19:06:17 UTC
KPageView issue