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
This is an issue with the code in the applet itself, not PlasmaComponents.
No longer relevant with the latest version of the code, which seems to use PlasmaCore.ToolTipArea correctly.
Hmm, I don't see it was changed: https://invent.kde.org/plasma/plasma-desktop/-/blob/master/applets/keyboardlayout/contents/ui/main.qml#L16
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.
Thanks for the Tip :)
One might even say that it was a tool tip (I'll be here all night, folks)
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