┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPan Zhang <[email protected]>2025-11-21 11:19:27 +0800
committerPan Zhang <[email protected]>2025-11-21 11:19:27 +0800
commitb39acbf9542bcce929a48070e3f6123eaa74078d (patch)
tree43f12466333a95bb96356232008ec6a8b9dbc259 /src/views
parenta557bf244b987f090b921e046cc51661c9dc775f (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')
0 files changed, 0 insertions, 0 deletions