Bug 491090 - Attached ToolTips (i.e. not standalone ToolTip {} objects) fail to escape ampersands in their text labels
Summary: Attached ToolTips (i.e. not standalone ToolTip {} objects) fail to escape am...
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: tooltips (show other bugs)
Version: 6.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-31 22:51 UTC by Patrick Silva
Modified: 2025-03-27 14:17 UTC (History)
6 users (show)

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


Attachments
screenshot (393.64 KB, image/png)
2024-07-31 22:51 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2024-07-31 22:51:17 UTC
Created attachment 172164 [details]
screenshot

STEPS TO REPRODUCE
1. open Kickoff
2. hover over the button used to open Kickoff settings and wait for its tooltip
3. 

OBSERVED RESULT
as we can see in the attached screenshot, the text from the tooltip starts with "&"

EXPECTED RESULT
remove "&" from the text

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 cwo 2024-07-31 23:19:01 UTC
Can reproduce on Tuxedo OS, same Plasma version.

Looks like a keyboard accelerator marker is not properly getting removed, similar to #488578
Comment 2 Nate Graham 2024-08-01 00:50:43 UTC
I recall this being caused in the past by the tooltip being implemented using attached ToolTip properties instead of separate ToolTip objects.  And I see that this particular's button is implemented using attached ToolTip properties. However I cannot seem to reproduce the bug for that particular button's tooltip.

However I can reproduce it if I manually add a & to the beginning of the text for the Pin button, which also uses attached ToolTip properties.

Amusingly, bug 472670 describes an issue that only affects non-attached tooltips, so it seems like right now we're trading off one bug for another, depending on the implementation.
Comment 3 Patrick Silva 2025-03-27 14:17:59 UTC
Cannot reproduce anymore.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Graphics Platform: Wayland