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

--- Comment #7 from Filip Fila <[email protected]> ---
Git commit dad191bb92022631a2bba5675c9a0aad2b1df5d8 by Filip Fila.
Committed on 03/06/2026 at 12:12.
Pushed by filipf into branch 'master'.

KUrlNavigator: Fix double background interference when in editable mode

THE ISSUE BEING SOLVED

Currently the editable mode in KIO's navigator bar isn't implemented ideally,
both from a general technical point of view and from the point of view of real
life visual glitches that emerge as a result.

The issue is that when in editable mode, we are drawing two elements at the
same time: 1) `PE_FrameLineEdit` responsible for the normal URL bar look; 2)
`KUrlCombobox` that is the editable mode and that gets drawn on top of
`PE_FrameLineEdit` when in editable mode.

The end result with most QStyles is a glitched look, with 2 elements'
backgrounds overlapping.


THE PROPOSED SOLUTION

We should not be drawing two elements at the same time. 

This MR fixes the described issue by making the `PE_FrameLineEdit` morph
seamlessly into `KUrlCombobox`.

I made sure that there is no bouncing around on mode switch and that spacings
are correct in RTL layouts too.

The end result works great with all QStyles - none of the ones I tested look
glitched anymore. 

____________
Related: bug 506177, bug 520249

FIXED-IN: 6.27

M  +20   -19   src/filewidgets/kurlnavigator.cpp

https://invent.kde.org/frameworks/kio/-/commit/dad191bb92022631a2bba5675c9a0aad2b1df5d8

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

Reply via email to