Skip to content

[KFileItemDelegate] do not waste space for non-existing icons in columns other than first

KFileItemDelegate is currently wasting a lot of space for non-existing icons in columns other than first one.

This issue is easily visible in KDE's File Picker dialog in Details View mode with larger icons set.
It even leads to unreadable file names when very large icons are used (3rd picture below).

OLD (wasted space marked in red):

phd-KFileItemDelegate-fix-wasted-space-no-icons-columns-gt-first-0-16

phd-KFileItemDelegate-fix-wasted-space-no-icons-columns-gt-first-0-64

phd-KFileItemDelegate-fix-wasted-space-no-icons-columns-gt-first-0-128

NEW:

phd-KFileItemDelegate-fix-wasted-space-no-icons-columns-gt-first-1-16

phd-KFileItemDelegate-fix-wasted-space-no-icons-columns-gt-first-1-64

phd-KFileItemDelegate-fix-wasted-space-no-icons-columns-gt-first-1-128

Merge request reports