]> cloud.milkyroute.net Git - dolphin.git/commit
Fix file names overflowing after text eliding
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>
Mon, 23 Jun 2025 12:26:49 +0000 (15:26 +0300)
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>
Mon, 23 Jun 2025 12:26:49 +0000 (15:26 +0300)
commitaba0de7301b060c40d543adbaa8d53cf69a9d7ee
treebba3bc2ddc0f42e8b12c1943443bb41b929daeb2
parentf9d94fcb36b2cd1c39a5b0371986d7cbbd5e6b47
Fix file names overflowing after text eliding

When QFontMetrics::boundingRect().width was replaced with QFontMetrics::horizontalAdvance() in 76a46fd9094b17eb99e8a42cca8562fdc0b3814c, an extra line (formerly introduced by a203c271161ce953354b9e0722492605a4d17415) 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
src/kitemviews/kstandarditemlistwidget.cpp