Smaller KDialogs if needed

Albert Astals Cid aacid at kde.org
Sat Jun 21 01:57:59 BST 2008


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?

Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smallerDialogs
Type: text/x-diff
Size: 5501 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080621/aff48c2e/attachment.diff>


More information about the kde-core-devel mailing list