[dolphin] [Bug 508294] Focus indicator fails to disable

Akseli Lahtinen bugzilla_noreply at kde.org
Mon Aug 18 11:37:29 BST 2025


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

Akseli Lahtinen <akselmo at akselmo.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
                 CC|                            |akselmo at akselmo.dev
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Akseli Lahtinen <akselmo at akselmo.dev> ---
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 on the CC list for the bug.


More information about the kfm-devel mailing list