Bug 81667 - Properties Dialog Does Not Wrap Very-Long Words
Summary: Properties Dialog Does Not Wrap Very-Long Words
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2004-05-16 06:04 UTC by jamethknorth
Modified: 2009-05-02 23:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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