Bug 429829

Summary: Standalone applet should have a tooltip
Product: [Plasma] plasmashell Reporter: Andrey <butirsky>
Component: Keyboard Layout widgetAssignee: Andrey <butirsky>
Status: RESOLVED FIXED    
Severity: wishlist CC: butirsky, nate, noahadvs, notmart, null, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Andrey 2020-11-29 23:07:39 UTC
SUMMARY
Doesn't happen when the button is placed in systray - have tooltip there. 

STEPS TO REPRODUCE
1. make sure multiple keyboard layouts are configured
2. add new QML Keyboard Layout applet to panel or desktop (it's already in P-D master)

OBSERVED RESULT
Should have 2 instances of the applet loaded - one on systray and another on panel.
Observe no tooltip on the panel's applet, but systray's one has it.  

EXPECTED RESULT
there should be tooltip on mouse hover 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: master

ADDITIONAL INFORMATION
It's a regression - it was OK until recent update.
First reported here:
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/181#note_134642
Comment 1 Nate Graham 2020-11-30 22:41:48 UTC
This is an issue with the code in the applet itself, not PlasmaComponents.
Comment 2 Nate Graham 2021-03-19 23:44:33 UTC
No longer relevant with the latest version of the code, which seems to use PlasmaCore.ToolTipArea correctly.
Comment 4 Nate Graham 2021-03-20 00:48:14 UTC
Oh I see, it works properly in the System Tray because the System Tray itself adds a tooltip automatically. But the standalone applet still suffers from this problem. You'll need to manually add a PlasmaCore.ToolTipArea.
Comment 5 Andrey 2021-03-20 21:53:04 UTC
Thanks for the Tip :)
Comment 6 Nate Graham 2021-03-21 02:37:07 UTC
One might even say that it was a

tool

tip


(I'll be here all night, folks)
Comment 7 Nate Graham 2023-09-20 20:53:23 UTC
Git commit c69679343b9dd60745432dff23c8af693e21f847 by Nate Graham.
Committed on 20/09/2023 at 22:46.
Pushed by ngraham into branch 'master'.

applets/keyboardlayout: give standalone version a tooltip

When in the System Tray, this applet gets a tooltip drawn for it
automatically by the System Tray contaninment. But when it's a
standalone widget, it needs to do this itself, since it doesn't use the
default CompactRepresentation which provides one automatically.
FIXED-IN: 6.0

M  +7    -0    applets/keyboardlayout/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/c69679343b9dd60745432dff23c8af693e21f847