Bug 81667

Summary: Properties Dialog Does Not Wrap Very-Long Words
Product: [Frameworks and Libraries] kdelibs Reporter: jamethknorth
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED WORKSFORME    
Severity: normal CC: andresbajotierra, jtamate
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description jamethknorth 2004-05-16 06:04:33 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Minor Bug. When having an extremely long name for something which has no breaks (my test to be sure I wasn't seeing things was with "hkfvhjdnbjkvldfshnbvjkdnbfkvjdnbfjkvnbdkgfbnvhjkgfdnbkjdlnjkvlsdnjkvnelurvhndkfljnvkldfjvsdfbdgfsbgfbgfdbcgbfdgggfbgfgvbfdnghnhg), the properties dialog will not wrap it if it cannot be renamed, even if this leaves the window much wider than the screen.

This happens with any read-only file. I tested it with a directory and a mount-point. The mount-point gets a label on a single line. The directory gets a line-edit, but it extends to contain the text. For some reason, if the directory is not read-only, it gets a line-edit which does not extend to fit the text but instead allows for scrolling inside.

The window should have a maximum size to avoid this. Normally, I would say it should be about 640 wide. I don't know if it is possible in Qt, but to support translations and huge fonts, it should probably be in ems instead of pixels.
Comment 1 Jaime Torres 2008-11-18 13:30:01 UTC
In kde 4.1.72 (svn trunk 885222), the properties dialog uses always the same with, with names that are inside a line edit wich allows to scroll inside, and the directory name is shown with ... if it is too large, and the properties window is resizeable.
Comment 2 Dario Andres 2009-05-02 23:58:44 UTC
Confirming it works here on KDE4.3trunk
Also, if the directory is too long and the "..." is added, a tooltip is used so you can hover that label and the full directory path will appear