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

Andras Mantia amantia at kde.org
Thu Jan 24 09:10:08 GMT 2008


On Tuesday 22 January 2008, David Faure wrote:
> On Tuesday 22 January 2008, Andras Mantia wrote:
> > - the squeezedlabel has a large text, but uses the full text,
> > because it would fit on the screen
>
> Yes I think it would be better to make the maximum width of the
> sizeHint "screen width * 3 / 4", to avoid screen-wide-labels anyway
> (independently of neighbouring labels).

I did this, it works. But I'm more happier with the other version of the 
patch - or a mix of two - where you, the user of the KSqueezedLabelText, 
can specify the maximum width, instead of using the above rule. Now it 
happens that the text is long, it *would* fit on the screen, but it will 
still show "..." in the middle as it is wider than the 3/4 of the 
screen.

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renamedialog1.patch
Type: text/x-diff
Size: 1427 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080124/13b455d8/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renamedialog2.patch
Type: text/x-diff
Size: 1283 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080124/13b455d8/attachment-0001.patch>


More information about the kde-core-devel mailing list