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

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/syst |https://invent.kde.org/syst
                   |em/dolphin/-/commit/b39acbf |em/dolphin/-/commit/2e7305e
                   |9542bcce929a48070e3f6123eaa |232f50d455ebceee6cdefba85b3
                   |74078d                      |635be0

--- Comment #5 from Méven <[email protected]> ---
Git commit 2e7305e232f50d455ebceee6cdefba85b3635be0 by Méven Car.
Committed on 22/11/2025 at 20:24.
Pushed by meven into branch 'release/25.12'.

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.


(cherry picked from commit b39acbf9542bcce929a48070e3f6123eaa74078d)

Co-authored-by: Pan Zhang <[email protected]>

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

https://invent.kde.org/system/dolphin/-/commit/2e7305e232f50d455ebceee6cdefba85b3635be0

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

Reply via email to