https://bugs.kde.org/show_bug.cgi?id=404625

--- Comment #8 from Christian Christiansen <christian.l.christian...@gmail.com> 
---
@Ashram

Thank you for detailing that only when a single item with elided text is
hovered or selected, should the full text be displayed. 

It may be possible to use another file browser in the interim (although from
briefly looking PCManFM-qt and Konqueror also have the same behaviour as
Dolphin); otherwise turning off elided text in Dolphin currently may be the
best option.

I have taken a look into it, but I am not familiar with Dolphin's code and have
been unable to come up with a solution, let alone a solution which isn't
completely hacked together. Hopefully by including some information below, the
job will be made easier for somebody else.

@Anybody wishing to patch this

So far as I can see, it is mainly the function
KStandardItemListWidget::updateIconsLayoutTextCache() which needs to be
adapted. It is easy to determine whether the item is selected (if
isSelected()), and if so, for the name not to be elided.

Troubles I ran into:
1. Determining whether the item is the _only_ one selected. (Solving this could
be pretty nasty, or maybe there's some neat way I've completely overlooked.)
2. Having the overflowing text always render neatly (as only the part where
Dolphin expects the icon to be is re-rendered, leaving off the bit with the
overflowing text).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to