[dolphin] [Bug 432530] Files with long filename not behaving properly (name overflow)

[email protected] (Unknown)
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=432530

Bojidar Marinov [:bojidar-bg] <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/aba0de7
                   |                            |301b060c40d543adbaa8d53cf69
                   |                            |a9d7ee

--- Comment #38 from Bojidar Marinov [:bojidar-bg] <[email protected]> ---
Git commit aba0de7301b060c40d543adbaa8d53cf69a9d7ee by Bojidar Marinov.
Committed on 23/06/2025 at 12:26.
Pushed by meven into branch 'master'.

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.

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

https://invent.kde.org/system/dolphin/-/commit/aba0de7301b060c40d543adbaa8d53cf69a9d7ee

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.