[PATCH] Only show tabs in kpluginselector config dialogs when needed

Will Stephenson wstephenson at kde.org
Mon Nov 19 15:39:52 GMT 2007

The attached patch makes KPluginSelector a bit smarter about when to use a 
KTabWidget for the config dialogs it generates.  

I noticed this with Kopete since we use many plugins.  Since 90% of the 
plugins it configures have only one KCModuleProxy widget, using tabs is 
mostly wrong and wastes space.  

This patch cuts out the tab widget unless there are multiple moduleproxies.  
The alternative approach, to hide the tab bar, only saves a little bit of 
space from the top of the widget, but not the extra margins brought in by the 
tabwidget.  Please review. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kutils_kpluginselector_tabs_as_needed.diff
Type: text/x-diff
Size: 2896 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071119/4ef5d790/attachment.diff>

More information about the kde-core-devel mailing list