Bug 489727 - Searching for "font" returns unrelated results
Summary: Searching for "font" returns unrelated results
Status: CONFIRMED
Alias: None
Product: frameworks-kwidgetsaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-04 10:09 UTC by medin
Modified: 2025-03-23 19:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
image1 (35.77 KB, image/png)
2024-07-04 10:09 UTC, medin
Details
image2 (60.42 KB, image/png)
2024-07-04 10:09 UTC, medin
Details
image (51.15 KB, image/png)
2024-07-04 10:19 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
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