[PATCH] Rename dialog is too big (or too narrow)

Andras Mantia amantia at kde.org
Tue Jan 22 08:42:42 GMT 2008

On Monday 21 January 2008, Alex Dănilă wrote:
> Hello,
> As a user I want the full path to be there (paths with 200+
> characters are not for the usual human though), and the way KDE 3
> does it is almost ok. With my settings I get to see
> /hom...rest_of_path.ogg, where rest_of_path is about 20 characters.
> The tooltip is a single liner, and so it does not fit the screen.
> Alex

I tried to see what happens there. So far what I found is that the 
problem is with finding the default layout for the dialog. When a 
KSqueezedTextLabel is created, it squeezes the text according to the 
actual size available. At this moment, the dialog is still small (it is 
just being constructed). Later the dialog is resized to the sizeHint 
value, but as KSqueezedTextLabel returns the actual size of the label, 
the sizeHint remains unchanged: the dialog appears with a squeezed text, 
even if the full text would fit on the screen.
 Solving this problem is a headache and look like a chicken/egg issue. 
:) I'm working on it, but well, I'm not sure I can come up with a good 
solution  that would not break other apps using KSqueezedTextLabel.


Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080122/b0ed05e9/attachment.sig>

More information about the kde-core-devel mailing list