Desktop icons
Waldo Bastian
bastian at kde.org
Sun Jul 20 21:35:12 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 20 July 2003 19:03, David Faure wrote:
> On Sunday 20 July 2003 18:51, Waldo Bastian wrote:
> > I have changed it to be "Hard disc". It will become "Hard disc (hda1)"
> > when you have more than one hard disk (disc?). When you have one device
> > that can be mounted at two different locations (some people have that,
> > not very common) it will become "Hard disc [/mnt/foobar]". Unfortunately
> > this looks horrible here since it gets wrapped as:
> >
> > Hard disc [/
> > mnt/foobar]
> >
> > Question to kfm-devel: Does kde do the wrapping or is it done by Qt?
>
> For desktop icons, KWordWrap does the job.
>
> It wraps at word separators, which includes '/', so the above isn't too
> surprising - but I see how it looks bad. I'm not sure which rule to make up
> to avoid that though. Paths are always a bit special....
> Hmm, something like: when finding a breakable char, check if the current
> word "looks good" (i.e. contains any real chars, not only other breakable
> chars), and if not, break before it. When hitting that '/', the current
> word is "[/", which doesn't fullfil that requirement.....
Yes something like that. But a slash alone should be left on the first line I
guess, example:
Input /
Output
Cheers,
Waldo
- --
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE/Gv0EN4pvrENfboIRAi8fAJ9DW/fcyXDTw5WUfaWwCOvHJPW8HQCfX1CN
MUiL89oRJ2F4Om/L9Bpfmhc=
=jsKM
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list