diff options
| author | Pan Zhang <[email protected]> | 2025-11-21 11:19:27 +0800 |
|---|---|---|
| committer | Pan Zhang <[email protected]> | 2025-11-21 11:19:27 +0800 |
| commit | b39acbf9542bcce929a48070e3f6123eaa74078d (patch) | |
| tree | 43f12466333a95bb96356232008ec6a8b9dbc259 /src/views/dolphinnewfilemenuobserver.cpp | |
| parent | a557bf244b987f090b921e046cc51661c9dc775f (diff) | |
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.
BUG: 512152
Diffstat (limited to 'src/views/dolphinnewfilemenuobserver.cpp')
0 files changed, 0 insertions, 0 deletions
