https://bugs.kde.org/show_bug.cgi?id=508294
Akseli Lahtinen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor CC| |[email protected] Status|REPORTED |CONFIRMED Ever confirmed|0 |1 --- Comment #1 from Akseli Lahtinen <[email protected]> --- Sadly this turned out to be much more difficult to fix than I expected. There is no clear way to ask the style if focus indicators are enabled or not: This is something baked into Breeze style, so we would have to check the breeze configuration for it. But this then would not of course work in other styles that have similar setting. As far as I know, we also can't make primitives into objects, only draw them. In this case `PE_FrameFocusRect`, which is what the Breeze settings toggle on or off. When it's off, it draws nothing. So we would need to figure out if `style()->drawPrimitive(QStyle::PE_FrameFocusRect, &focusOption, painter);` actually draws anything or not, then use that information to draw the focus. For now I could not figure out a sane way to do that. Help from anyone with more insight into QPainter and QStyle would be appreciated with this. -- You are receiving this mail because: You are watching all bug changes.
