Smaller KDialogs if needed

Olivier Goffart ogoffart at kde.org
Sun Jun 22 10:29:20 BST 2008


Le samedi 21 juin 2008, Albert Astals Cid a écrit :
> KDialog uses the mainwidget sizeHint to calculate it's minimumSizeHint,
> this results in BIG KDialogs and bad situations like for example
> 	$ keditfiletype text/html
> not fitting in a 1024x768 screen.
>
> The attached patch first uses sizeHint and if the calculated
> minimumSizeHint is bigger than 90% of available screen rect recalculates
> the minimumSizeHint using children's minimumSizeHint.
>
> That gives me a keditfiletype that fits nicely in a 1024x768 screen.
>
> Comments?

Don't you think kdialog should always compute the minimum sizehint from the 
minimum size hint of it's contents?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080622/c53e41f5/attachment.sig>


More information about the kde-core-devel mailing list