Fix file names overflowing after text eliding

When QFontMetrics::boundingRect().width was replaced with QFontMetrics::horizontalAdvance() in !22 (merged), an extra line (formerly introduced by a203c271) was changed as well.

Unfortunately, boundingRect().width is the correct function to use for calculating the size of the last line, while horizontalAdvance would be correct if we were laying it next to the previous line instead of below the previous line.

BUG: 432530

(Note: This PR was made during a livestream, which you can see on PeerTube. Shameless plug, I know 🥲)

Edited by Bojidar Marinov

Merge request reports

Loading