https://bugs.kde.org/show_bug.cgi?id=515867

--- Comment #10 from Méven <[email protected]> ---
Git commit b36cad99f127713f68b7ff5ada4f327c0fae438b by Méven Car.
Committed on 17/10/2026 at 18:00.
Pushed by meven into branch 'Plasma/6.8'.

UnionStyle: underline accelerators of selectable labels only with Alt

Before this change, styleHint() answered true for SH_UnderlineShortcut, while
drawItemText() hid accelerators until Alt is pressed. A QLabel whose text is
selectable draws through its own text document, which only reads
SH_UnderlineShortcut. Such a label with a buddy showed its accelerator
underlined all the time, for example the file metadata labels in the Dolphin
information panel and the properties dialog.

SH_UnderlineShortcut now follows the Alt key, as drawItemText() does.


(cherry picked from commit b0c9e1f56b82e28b427a37855f34a3824d3e9a86)

Co-authored-by: Méven Car <[email protected]>

M  +3    -1    src/output/qtwidgets/UnionStyle.cpp

https://invent.kde.org/plasma/union/-/commit/b36cad99f127713f68b7ff5ada4f327c0fae438b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to