Dolphin unnecessarily truncates names of symbolic links in compact mode while keeping names of other files non-truncated.
Steps to Reproduce:
1. Switch Dolphin view to compact
2. Create a file
3. Create symbolic link to this file
The symlink gets truncated while the file does not.
The files and the symlinks should be truncated to the same width.
This is similar to [this bug](https://bugs.kde.org/show_bug.cgi?id=183620)
I am using Fedora 19, kde-workspace-4.11.2-1, qt-4.8.5-10
Created attachment 82928 [details]
My Font Settings
This is a screenshot of my font settings - maybe that makes it reproducible more easily (as suggested by Frank Reininghaus).
The screenshot of the actual bug is here: http://bugsfiles.kde.org/attachment.cgi?id=82911
Thanks for the report! I could reproduce the problem now.
The problem is in the function
KStandardItemListWidgetInformant::itemSizeHint(int index, const KItemListView* view),
which calculates the width that an item in Compact View requires. It calculates how many pixels the file name would require if it was not italic, but the width for the italic version may be slightly higher. When the view tries to render the text on the screen, it finds that the pre-calculated width is insufficient, and elides the name.
Git commit b892058730544d53e0c08e32dc297f2f1256f9ae by Emmanuel Pescosta.
Committed on 05/03/2014 at 09:48.
Pushed by emmanuelp into branch 'KDE/4.13'.
Fix Bug 326210 - Dolphin unnecessarily truncates names of soft links in compact mode
Related: bug 310592
M +18 -0 dolphin/src/kitemviews/kfileitemlistwidget.cpp
M +2 -0 dolphin/src/kitemviews/kfileitemlistwidget.h
M +31 -5 dolphin/src/kitemviews/kstandarditemlistwidget.cpp
M +12 -0 dolphin/src/kitemviews/kstandarditemlistwidget.h