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

Pan Zhang <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/b39acbf
                   |                            |9542bcce929a48070e3f6123eaa
                   |                            |74078d
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Pan Zhang <[email protected]> ---
Git commit b39acbf9542bcce929a48070e3f6123eaa74078d by Pan Zhang.
Committed on 21/11/2025 at 03:19.
Pushed by meven into branch 'master'.

kstandarditemlistwidget: Fix vertical misalignment for file names containing
certain glyphs

In the Details view the name (text) column could appear vertically off-center
for file names containing certain Unicode glyphs (for example "』").  The issue
is caused by a mismatch between the generic font metrics ascent and the actual
ascent of the rendered QTextLine for that glyph, which shifts the baseline and
thus the visual vertical centering.

This change computes the QTextLine ascent for the (single) layouted line and
adjusts the vertical position by the difference between the font metrics ascent
and the line ascent.  The adjustment is applied only for the name (text) role
so other columns are unaffected.

M  +11   -1    src/kitemviews/kstandarditemlistwidget.cpp

https://invent.kde.org/system/dolphin/-/commit/b39acbf9542bcce929a48070e3f6123eaa74078d

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

Reply via email to